Bạn có thể thử sử dụng bỏ chia sẻ
select v
from (
SELECT 'A' column1,'B' column2,'C' column3,'D' column4 from dual
) t
unpivot
(
v for val in (column1,column2,column3,column4)
) u;
sqlfiddle: https://dbfiddle.uk/?rdbms=oracle_11b2&f2d7
Bạn có thể thử sử dụng bỏ chia sẻ
select v
from (
SELECT 'A' column1,'B' column2,'C' column3,'D' column4 from dual
) t
unpivot
(
v for val in (column1,column2,column3,column4)
) u;
sqlfiddle: https://dbfiddle.uk/?rdbms=oracle_11b2&f2d7