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: andrewst <member14183_at_dbforums.com>
Date: Wed, 23 Jul 2003 09:53:10 +0000
Message-ID: <3142279.1058953990@dbforums.com>

Originally posted by andrewst
> Because of the colons:
>
> declare
> Id tblPerson.IdPerson%type;
> Name tblPerson.NamePerson%type;
> begin
> select IdPerson,NamePerson
> from tblPerson
> INTO Id,Name;
> end;

Oh, and INTO should be before FROM:

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

--
Posted via http://dbforums.com
Received on Wed Jul 23 2003 - 04:53:10 CDT

Original text of this message

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