Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Reg. 'drop table' statement
qazmlp1209_at_rediffmail.com (qazmlp) writes:
> I want to drop the table where table names ends with 'TESTTABLE'.
> I tried with this:
> drop table (select tname where tname like '%TESTTABLE');
>
> But, it does not work.
Try this, but be careful and please do not crosspost. Harald
spool abc.sql
set heading off
set feedback off
select 'drop table ' || tname || ';' from tab
where tname like '%TESTTABLE';
spool off
set heading on
set feedback on
@abc.sql
Received on Mon Aug 18 2003 - 07:39:52 CDT
![]() |
![]() |