This is the next question Move one row to many rows of Oracle
I want to be able to cancel an arbitrary query result.
To disable a table manually, I would do:
select value_type, value from (
(
)
unpivot
(
value for value_type in (col1, col2, col3, col4, col5)
)
);
This works for all queries that return 5 columns called col1, col2etc. Is there something I put in place value for value_type in (col1, col2, col3, col4, col5)that captures all the column names from the query / view / table selected in the first part?
source
share