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

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

$
0
0
Thanks Dieter,   I have added my database & table as per below;   select 1 from C917348.ACCT_BASE where database = C917348 and table = 'ACCT_BASE'   .if activitycount = 0 then GoTo ok   DROP TABLE ACCT_BASE   .label ok   This is a Volatile table so the database is my id C917348 & the table I want to delete is ACCT_BASE'   I'm getting the error "Expected something between 'and' & 'table' ??

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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