Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Compilation error
Hi!
You have to specify the "destination" of select:
create procedure andy as
c Varchar2 (3);
begin
select 'aaa' into c ^^^^^^ from dual;
Jean wrote:
>
> I have written the following procedure:
>
> create procedure andy as
> begin
> select 'aaa' from dual;
> end;
> /
>
> It compiles with error. I don't understand. Can anyone please enlighten
> me!!!!
-- Regards. Alexey Neckrasow. Leaves Inc. Russia. e-mail: nec_at_leaves.spb.suReceived on Wed Mar 12 1997 - 00:00:00 CST