| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.oracle -> Re: Remove all tables for user with one SQl statement?
"Jan Doggen" <j.doggen_at_BLOCKqsa.nl> wrote in news:43a2ee48$0$11062
$e4fe514c_at_news.xs4all.nl:
> Hi
>
> How can I remove all tables
> UserName.TblNam1
> UserName.TblNam2
> UserName.TblNam3
> etc
>
> with one SQL statement?
>
> Thanks in advance
> Jan
>
>
An anonymous PL/SQL block...
begin
executute immediate 'drop table UserName.TblNam1'; executute immediate 'drop table UserName.TblNam2'; executute immediate 'drop table UserName.TblNam3';end;
Or you could write a "dropalltables" stored procedure and run that. Received on Mon Jan 09 2006 - 09:59:32 CST
![]() |
![]() |