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

Home -> Community -> Usenet -> c.d.o.misc -> PL/SQL: Passing TABLE NAME into module for SELECTs ???

PL/SQL: Passing TABLE NAME into module for SELECTs ???

From: jane <janeyiu_at_optonline.net>
Date: Wed, 24 Oct 2001 23:42:13 GMT
Message-ID: <plIB7.3102$C7.1087772@news02.optonline.net>


I am trying to pass a table name into a module to be used in the FROM clause....like below, this is NOT allowed, is it ? What's the proper way ? DBMS_SQL ?
Thanks Jane

Procedure pass_this_junk ( v_tab_name IN VARCHAR2) IS
v_count INTEGER;
BEGIN
SELECT count(*) INTO v_count FROM v_tab_name;

..................

END; Received on Wed Oct 24 2001 - 18:42:13 CDT

Original text of this message

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