Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 20 Feb 2008 @ 22:04:09 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Conditional Table Drop
 
From:   Nimmala, Meher Tej

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



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016