Skip to Main Content

SQL Developer

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

spool for insert in sql developer not working

user12251389Aug 16 2017 — edited Aug 17 2017

I have below select query for which the result of this query i want to create insert scripts and saved it in files. I have used spool.

set long 10000

set lines 100000

set sqlformat insert

spool c:\temp\Insert_TEST_GRP.sql

select ID,NAME,TEST_DATE from TEST_GRP sd

where TEST_DATE =

( select min(TEST_DATE)

   from TEST_GRP sd2

   where sd.ID = sd2.ID  

)

and sd.TEST_DATE <> TO_DATE ('01.01.2000', 'dd.mm.yyyy');

spool off

The file has been created. But when i view the file i am getting the result which is not in the form of insert statements as i want to run this insert statement again.

This post has been answered by thatJeffSmith-Oracle on Aug 16 2017
Jump to Answer

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 14 2017
Added on Aug 16 2017
7 comments
1,274 views