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 -> PLS-00382

PLS-00382

From: Konrad Rotuski <krotuski_at_elka.pw.edu.pl>
Date: Tue, 17 Jun 2003 21:43:05 +0200
Message-ID: <Pine.SOL.4.30.0306172111300.13982-100000@mion.elka.pw.edu.pl>


Hi all

here is a simple for loop in PL/SQL

FOR kategoria IN (SELECT KAT_ID FROM KATEGORIE) LOOP

        select * from artykuly where kat_kat_id = kategoria; END LOOP; when i try to compile, i get PLS-00382 : expression is of wrong type, pointing to kategoria (for variable) in the middle line. Anybody has an idea of what is wrong with this code, i just want to select all articles for all categories, maybe some other suggestions

any help is much appreciated
thx in advance Received on Tue Jun 17 2003 - 14:43:05 CDT

Original text of this message

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