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

Home -> Community -> Usenet -> c.d.o.misc -> stored procedure

stored procedure

From: Gennady <gbesfamilny_at_home.com>
Date: Fri, 11 Jun 1999 02:56:08 GMT
Message-ID: <cV_73.12813$Gv3.27102@news.rdc1.bc.wave.home.com>


Hello,
What is wrong with this stored procedure?

create procedure GB.sp_empty
as begin
spool D:\project\DBdata\y.sql
select 'drop ' || object_type || ' ' || owner || '.' || object_name || ';' from all_objects
where owner='GB'
and object_type in ('TABLE','VIEW')
spool off
@D:\project\DBdata\y.sql;
end;

How could I fix it?

Gennady Received on Thu Jun 10 1999 - 21:56:08 CDT

Original text of this message

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