Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

exact table clone - response (3) by VandeBergB

$
0
0
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.... :)

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>