Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / April 2006

Tip: Looking for answers? Try searching our database.

can i use load terminate with cursor for select * from table name?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
technocrat - 15 Apr 2006 07:06 GMT
I wanted to know if i always have to use

1..load from /dev/null/ of del  terminate into tablename nonrecoverable

or can i do something like

2...declare cur cursor for select * from tablename ...........( the
table which recently failed loading)
load from cur for cursor terminate into tablename ( the table which
failed loading )

I know number 1 works always..but if 2 works then my life would be so
easier..!

Thanks
technocrat - 15 Apr 2006 07:19 GMT
I think the above post wasnt clear enough...hers the actual java
psudeocode doing that

delcare cur of cursor for select * from tablename
try{
               load from cur of cursor INSERT into table 2
nonrecoverable
   }
exception()
  {
              load from cur of cursor TERMINATE into table 2
nonrecoverable
  }

I was wondering if the above wud work....loading from the same cur
again to terminate also...rather than using a NULL file
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.