Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: from DB2 to Oracle8
In article <8jj3ub$1i$1_at_news6.svr.pol.co.uk>,
Jim Harrison <jim_at_colway.net> wrote:
> Generate lots of insert statements eg: SELECT 'INSERT INTO ORA_TAB
>(col1, col2...) VALUES('||col1||','||col2||',...)' FROM DB2_TAB; Then run
>the SQL script against your Oracle table.
Has anyone written a script to automate the above? Handling cases when one of the fields in a particular row happens to be NULL and therefore the column and the extra comma need to be stripped from the INSERT is incredibly time consuming.
Yours Truly, Jeffrey BoulierReceived on Sun Jul 30 2000 - 00:00:00 CDT
![]() |
![]() |