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 -> PL/SQL

PL/SQL

From: Horst Haag <h.haag_at_fnt.de>
Date: Wed, 18 Nov 1998 10:56:12 GMT
Message-ID: <72u97k$42j$1@news.LF.net>


Hi,

I am trying to access a table within a oracle function. The function looks similar to:

The function get an id as argument it then select in one main table (elements) the tablename where to look for an specific attribute in the detail table (v_class).
While compiling the function oracle tells me that v_class is no table.
Hints ver welcome !!
Thanks.

create or replace function get_ident
(v_comp_elid in varchar2)
RETURN number
is

   v_ident number;
   v_class varchar2(20);
begin
--

LINE/COL ERROR
-------- -----------------------------------------------------------------

20/2     PL/SQL: SQL Statement ignored
23/3     PLS-00356: 'V_CLASS' must name a table to which the user has
         access
Received on Wed Nov 18 1998 - 04:56:12 CST

Original text of this message

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