SQL> select
2 xmlcolattval( emp_id, salary )
3 from emp;
XMLCOLATTVAL(EMP_ID,SALARY)
-----------------------------------------------------------------------------
<column name = "EMP_ID">E01 </column><column name = "SALARY">150</column>
<column name = "EMP_ID">E02 </column><column name = "SALARY">200</column>
<column name = "EMP_ID">E03 </column><column name = "SALARY"></column>
|