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

Home -> Community -> Usenet -> c.d.o.tools -> truncate problems in PL/SQL

truncate problems in PL/SQL

From: <toadsprocket_at_my-deja.com>
Date: Tue, 19 Sep 2000 03:15:45 GMT
Message-ID: <8q6loi$73r$1@nnrp1.deja.com>

I am writing a PL/SQL routine that needs to truncate a summary table before starting, the code goes something like this:

DECLARE
  CampaignVar varchar2(80);
BEGIN
  truncate table edge_numbers;
  select Distinct(Campaign_ID)
  into CampaignVar
  etc etc etc.....

With the truncate I get error PLS-00103 from the parser, I want to trunc it on the way in and on the way out of the routine. As soon as I pull out the truncate everything works like a charm, can someone say ARRGGHH!! :) Any ideas??

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Mon Sep 18 2000 - 22:15:45 CDT

Original text of this message

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