Try this
Write a procedure that will
create a cursor on coltab in declare
open the cursor with loop in begin
fetch row,
insert into rowtab
(if you have more than columns in coltab then write insert
(statement for each column as
insert col1 into rowtab;
insert col2 into rowtab;
...
...
close cursor
end procedure
-----Original Message-----
From: gurjinder
[mailto:oracledba-ezmlmshield-x4282670.[Email address protected]
Sent: Wednesday, May 31, 2006 1:05 PM
To: LazyDBA Discussion
Subject: Columns as rows
Hi Gurus,
Is there any one who knows how to insert columns as rows in another
table...
Rgds
Gurjinder
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.
www.wipro.com
--------
website: http://www.LazyDBA.com
Please don't reply to RTFM questions
Oracle documentation is here: http://tahiti.oracle.com
To unsubscribe: see http://www.lazydba.com/unsubscribe.html
To subscribe: see http://www.lazydba.com
By using this list you agree to these
terms:http://www.lazydba.com/legal.html
Oracle LazyDBA home page