Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Horizontal values to vertical

sunil_dbaNov 29 2010 — edited Sep 27 2012
i have table like
 
serial no     col1   col2   col3
---------------------------------------------
1                x1     x2   x3
2                y1     y2   y3
Now i want to insert this date into a different table like

sel no  col1
------------------
1         x1
1         x2
1         x3
2         y1
2         y2
2         y3
How can i do this with a program
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2012
Added on Nov 29 2010
8 comments
7,450 views