Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Learning what CLASSPATH is about
Message
 
To
05/12/2003 10:21:16
General information
Forum:
Java
Category:
Databases
Miscellaneous
Thread ID:
00853953
Message ID:
00856518
Views:
41
Hi John,

You might also take a look at the copy command. You could create a temp table structure from the source table something like:
select sourcetable,

copy structure to temptable

copy all to temptable where UPPER(substr(thefield))="S"
As you can see this would copy a subset of the source table to temptable. If sourcetable had an index, the records copied to temptable would also be ordered, so it might not be necessary to pass the index paramenter to the exe program. Maybe you could just pass the temptable name to the exe.

The copy command is very fast, much faster than a scan doing inserts, etc.

When done, zap temptable.

Just a thought.

I'm in Linux right now, so the syntax will be way off, but you will get the idea.


LelandJ
Leland F. Jackson, CPA
Software - Master (TM)
smvfp@mail.smvfp.com
Software Master TM
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform