Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> pl/slq: how to use variable as from in select

pl/slq: how to use variable as from in select

From: Ralf Bender <ralf_bender_at_web.de>
Date: 11 Apr 2001 15:01:30 +0200
Message-ID: <3ad455aa$1@netnews.web.de>

hello

in pl/sql i wrote the following statement :   LOOP

      FETCH c_AnzBelege INTO c_TName;
      EXIT WHEN c_AnzBelege%NOTFOUND;
      


        SELECT Name,Login
	FROM c_TName 
	WHERE trunc(create_on) = trunc(sysdate)-1;


  END LOOP But i got PLS-00201 at the FROM variable? Could someone explain how to do it right?

thx a lot
ralf

-- 
_____________________________________________________________
NewsGroups Suchen, lesen, schreiben mit http://netnews.web.de
Received on Wed Apr 11 2001 - 08:01:30 CDT

Original text of this message

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