deleting all tables [message #2234] |
Mon, 01 July 2002 06:40 |
sree hari
Messages: 10 Registered: July 2002
|
Junior Member |
|
|
Hi,
can anyone give me solution for the below
how to delete all table once in a perticular user
thanking you
sree hari
|
|
|
|
Re: deleting all tables [message #2250 is a reply to message #2234] |
Tue, 02 July 2002 01:37 |
Amit
Messages: 166 Registered: February 1999
|
Senior Member |
|
|
you can do this ...
SELECT 'drop TABLE ' || tname || ' CASCADE CONSTRAINTS' from tab;
Spool d:drop_user_tables.sql
SELECT 'Drop TABLE ' || tname || ' CASCADE CONSTRAINTS' from tab;
select 'Drop VIEW ' || view_name from user_views;
select 'Drop TRIGGER ' || TRIGGER_NAME from user_triggers;
Spool off
@d:drop_user_tables.sql
|
|
|