|
>Is there a way, using SQL, to extract the CREATE TABLE >Statement used to create a DB2/400 File? Hi Ian! I don't know of a direct way to extract the exact "CREATE TABLE" statement, but you can examine SYSCOLUMNS, SYSKEYS, etc. to pick out the information you need. The only reason I mention this is that simply re-creating the table won't re-establish the constraint environment, nor will it rebuild the indices and views. This actually sounds like an interesting project, because the system catalogue also keeps track of files created through DDS. ---buck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.