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

Delete or Drop a table if it already exists - response (9) by DataHead

$
0
0
I've also tried the script to delete a normal table as below; I'm getting the error 3706 - "Expected something between 'and' & 'table'. Where is the code wrong? I can't think of what should go between 'and' & 'table'? Thanks   select 1 from DATABASE_NAME.TABLE_NAME where database = DATABASE_NAME and table = TABLE_NAME   .if activitycount = 0 then GoTo ok   drop table DATABASE_NAME.TABLE_NAME .label ok

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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