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: IDEDWARDS <idedwards_at_aol.com>
Date: 06 Jan 2000 21:44:15 GMT
Message-ID: <20000106164415.01136.00000104@ng-fj1.aol.com>


You can't perform DDL in a PL/SQL block (create, drop, truncate etc.). You can make use of the dbms_sql package to perform dynamic sql which should get around your problem.

Alternatively, you could use SQL*Plus to create a 'drop' script which could then be run to drop all necessary tables.

Ed Received on Thu Jan 06 2000 - 15:44:15 CST

Original text of this message

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