Quote:
|
Originally Posted by magro
P.S.: Ahem, by the way - I know that importing the ixf into my db2 installation would be an option. But I was interested in a "direct" way from the ixf to the create statement....
|
Just a note on that... you can specify ROWCOUNT 1 so you don't have to load the whole thing.
My suggestion:
-------------------
db2 "IMPORT FROM myfile.ixf OF IXF ROWCOUNT 1 CREATE INTO B" >> /dev/null
db2look -d LISDEV -t B -e
db2 "DROP TABLE B" >> /dev/null
------------------
OK, it's cheating... but no table, just the DDL output... done!
