Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Delete or Drop a table if it already exists - response (7) by VandeBergB

$
0
0
DH, This sounds like a perfect use for a Global Temp table in your code.  The structure of the table stays in the DD after you log off, eliminating the need to run all that create volatile table repetitively.  Rather than adding complexity to see if its there and make sure that its empty, just run 'Delete * from GlobalTempTable All;' avoid the overhead of the delete * from tbl.... Your structure is there, no need to rebuild the tables, the delete...all; will empty your tables very quickly, and your insert statements can run without worrying about any artifacts... -Blaine

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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