Is it at all possible to do database-agnostic table dumps/hydrates? I don't have any complicated constraints. I would also settle for db-specific ways, but the more pure jdbc it is the better (I don't want to resort to impdp/expdp).
A:
DBUnit looks good, however you probably are not going to beat the vendor tools for import/export. If you are going to be importing or exporting 100,000+ rows it's probably best to use impdp/expdp.
I've also done strange things like building an insert statement from a sql query and then using sqlplus to process. [select 'insert into table values ( ...'||column||' ...) ] But i was being lazy and didn't want to create a sqlldr or jdbc insert program.
I've used perl the same way for when i needed larger imports.
jim
2008-10-20 23:41:18
A:
If it's a small volume of data, some programs (like Aqua Data Studio) can export data as a sequence of SQL 'INSERT' statements.
tunaranch
2008-10-20 23:41:45