sql >> Base de Datos >  >> RDS >> Oracle

Transponer una fila en muchas filas Oracle

Por supuesto. Hacer

select 'Col1' ColName, Col1 Value from srctable union all
select 'Col2', Col2 from srctable union all
select 'Col3', Col3 from srctable union all
select 'Col4', Col4 from srctable