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: user interaction with procedure

Re: user interaction with procedure

From: <fitzjarrell_at_cox.net>
Date: 10 May 2007 05:56:06 -0700
Message-ID: <1178801766.893214.53330@y80g2000hsf.googlegroups.com>


On May 10, 7:50 am, Andrea <netsecur..._at_tiscali.it> wrote:
> hi,
> i would like to run this simple procedure:
>
> create or replace procedure p_test as
> BEGIN
> FINE := 'NO';
> EXIT WHEN FINE = 'YES';
> accept ID char prompt "INSERT DOT FOR CONTINUE"
> select * from prova;
> IF ID := '.' THEN
> FINE := 'YES';
> END IF;
> END LOOP;
> END;
> /
>
> but it sho me error:
>
> 6/8 PLS-00103: Encountered the symbol "ID" when expecting one of the
> following:
> := . ( @ % ;
>
> can someone help me please?
>
> thanks

You cannot use 'accept' in a PL/SQL block; it is a SQL*Plus command. AFAIK you cannot have an interactive PL/SQL block. What, exactly, are you trying to accomplish? There is likely a much better way to do whatever it is you're trying to do.

David Fitzjarrell Received on Thu May 10 2007 - 07:56:06 CDT

Original text of this message

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