how to drop a table using shell script
Hi team,
Am inserting the data into a new table ,the data is coming from Select statement.
like
select col1,col2,col3
into tempdb..tableNew
from tempdb..tableSource
where col1 = 2
so before inserting into tableNew,it should drop the table if exists in tempdb
am using drop table tempdb..tableNew but its of no use in shell script but if i run the same in Database its droping the table
Can anyone help me on this.
Regards
Swapna
|