URGENT! HELP! Variable Substitution in PL/SQL

From: KYLai <laiky_at_hkstar.com>
Date: 1996/10/04
Message-ID: <531sr5$l9t_at_capella.hkstar.com>#1/1


Hello!

I would like to write a procedure to check the existence of an element in the table(

     input parameter : table name, field name, field value; 
     output parameter : True - record found
                        False - record not-found);

This procedure will be called by forms.

Can anybody advise me on the followings:

  : I can't use NAME_IN function in SELECT statement  

  : I can do the following under <<SQL*PLUS>>     define WORK_TABLE="EMP"
    select &&WORK_TABLE.DEPTNO from &&WORK_TABLE;

    I cannot use && under <<PL/SQL>>

I am new for ORACLE. May anyone of you can share your knowledge with me, advise me how to solve the above problems.

THANKS A LOT for YOUR HELP.  

Best Regards,
KY Lai Received on Fri Oct 04 1996 - 00:00:00 CEST

Original text of this message