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

Delete or Drop a table if it already exists - response (3) by dnoeth

$
0
0
Since 13.10 SQLA supports some basic conditional logic using BTEQ syntax: http://developer.teradata.com/note/828 select 1 from dbc.TablesV where databasename = database and TabkeName = 'table_x'; .if activitycount = 0 then GoTo ok drop table table_x; .label ok create table table_x(....)Dieter  

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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