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 -> passing variable to a cursor

passing variable to a cursor

From: cbarak <charlinbarak_at_gmail.com>
Date: 8 Sep 2005 07:55:50 -0700
Message-ID: <1126191350.754804.107750@g43g2000cwa.googlegroups.com>


I would like to pass in a schema name to a cursor but I'm not sure what the syntax is, can someone help...

cursor mycursor (v_schemaname in varchar2) is

        select name from v_schemaname.emp where empid=100;

I've been getting ora-933:SQL command not properly ended.

thanks.

charlin Received on Thu Sep 08 2005 - 09:55:50 CDT

Original text of this message

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