Message-Id: <10658.119965@fatcity.com> From: Chuck Hamilton Date: Mon, 23 Oct 2000 06:52:16 -0700 (PDT) Subject: Re: Dynamic-Sql --0-1655704329-972309136=:25772 Content-Type: text/plain; charset=us-ascii Depends on the version of Oracle. For v7 use the dbms_sql package. For v8 use "execute immediate". What you want to do however doesn't sound like dynamic sql is needed. Just query the user_tab_columns view. Poosapati Varma wrote: Hi guys, We have a scenario here. where in client VB application passes a table name as a parameter into Oracle stored procedure and that stored procedure Has to return all the fields values back into VB. How do we do it dynamically? Varma. __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/ -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Poosapati Varma INET: psgkv@yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). --------------------------------- Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. --0-1655704329-972309136=:25772 Content-Type: text/html; charset=us-ascii

Depends on the version of Oracle. For v7 use the dbms_sql package. For v8 use "execute immediate". What you want to do however doesn't sound like dynamic sql is needed. Just query the user_tab_columns view.

  Poosapati Varma <psgkv@yahoo.com> wrote:

Hi guys,

We have a scenario here. where in client VB
application passes a table name as a parameter into
Oracle stored procedure and that stored procedure Has
to return all the fields values back into VB.

How do we do it dynamically?

Varma.

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.
http://im.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Poosapati Varma
INET: psgkv@yahoo.com

Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in!
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).



Do You Yahoo!?
Yahoo! Messenger - Talk while you surf! It's FREE.