Convert columns to rows in oracle 9i [duplicate]
问题 This question already has answers here : Oracle SQL pivot query (2 answers) Closed 2 years ago . Please help me to the SQL Oracle 9i , convert columns to rows in group by ID. I can't convert using UNPIVOT in oracle 9i. And I will not use UNION ALL, it's too much code to use later. From this list: Table: Employees ID | DATA 1 | DATA 2 | DATA 3 | DATA 4 | ---------------------------------------------------------- 1 | 0 | 1 | 3 | 2 | 2 | 1 | 0 | 3 | 0 | Result ID | SOURCE | DATA | --------------