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: Problem with pl/sql script

Re: Problem with pl/sql script

From: Eric Parker <eric.parkerthedross_at_virgin.net>
Date: Wed, 23 Jul 2003 09:55:23 +0100
Message-ID: <%3sTa.70$hD1.1563@newsfep4-glfd.server.ntli.net>


"Arek" <a.klos_at_elmak.pl> wrote in message news:bflgkq$atu$1_at_nemesis.news.tpi.pl...
> Hello,
> I have 1 row in table "tblPerson".And PL/SQL Script :
>
> declare
> Id tblPerson.IdPerson%type;
> Name tblPerson.NamePerson%type;
> begin
> select IdPerson,NamePerson
> from tblPerson
> INTO :Id,:Name;
> end;
>
>
> I get back an error:
> SP-0552: Variable "Id" is not defined.
>
> Why it doesn't work ? (Oracle 8.1.7)
>
> Arek.
>
>

Arek

Try

declare
Id tblPerson.IdPerson%type;
Name tblPerson.NamePerson%type;
begin
select IdPerson,NamePerson
INTO Id, Name from tblPerson;
end;

--
Remove the dross to contact me directly
Received on Wed Jul 23 2003 - 03:55:23 CDT

Original text of this message

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