The following code will generate "show table" statements for all of the tables in the specified database. You can export the answer set to a .txt file from QueryMan and run the statements in the generated text file to see the DDL, constraints included.
SELECT
'show table '||TRIM(databasename)||'.'||TRIM(tablename)|| ';'
FROM
dbc.tables
WHERE databasename = '<insert your dbname here>'You can change the export settings in QueryMan to create a clean script from the execution of the "show table" batch with a little bit of exploration, which is left as an exercise for you.... :)
↧