![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 20 Feb 2008 @ 22:04:09 GMT
Hi, You can use Activity_Count in BTEQ (whether previous command executes successfully(0) or not(1)).
select 1 from dbc.tables
where databasename='XYZ' and tablename ='TBL';
.if activity_count =0 then drop table dbname.tablename;
Thanks Meher
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||