Quote:
Originally posted by b_moni
No, I can't use db2look, because I'm using Java, so I must create the table using JDBC.
|
I'm not sure there's an easy way to do this without the original table definition. As you said, ALTER won't work with IDENTITY, and you can't add columns when you're using the "AS" clause.
You might get away with using the MetaData classes JDBC provides, but that's fairly ugly... and won't give you the whole definition, probably just the data types.
ie. DatabaseMetaData's getColumns() method...
Anyone else have any ideas?