Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Cursor to drop all tables

Re: Cursor to drop all tables

From: rockcogar <rock_cogarNOroSPAM_at_my-deja.com.invalid>
Date: Wed, 29 Dec 1999 10:43:58 -0800
Message-ID: <00dd0b10.b224365b@usw-ex0107-043.remarq.com>


I think (I do not have my books, cause I am on the road) that the problem here is related to dynamic SQL.

The method I use for this purpose is to use a tool like Golden,SQL Worksheet or EZSQL to generate a long list of one line scipts with a script like:

select 'drop table docsadm.'||lower(table_name)||';' from dba_tables
where owner = 'DOCSADM'
order by table_name asc;

Lastly, I run the result set of one line scipts.

Rock Cogar.
Radian International LLC.
Oak Ridge, TN. USA.

Received on Wed Dec 29 1999 - 12:43:58 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US