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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Dynamic-Sql

Re: Dynamic-Sql

From: Chuck Hamilton <chuck_hamilton_at_yahoo.com>
Date: Mon, 23 Oct 2000 06:52:16 -0700 (PDT)
Message-Id: <10658.119965@fatcity.com>


--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 <psgkv_at_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_at_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_at_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


<P> 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.
<P>&nbsp; <B><I>Poosapati Varma &lt;psgkv_at_yahoo.com&gt;</I></B> wrote: <BR>
<BLOCKQUOTE style="BORDER-LEFT: #1010ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">Hi guys,<BR><BR>We have a scenario here. where in client VB<BR>application passes a table name as a parameter into<BR>Oracle stored procedure and that stored procedure Has<BR>to return all the fields values back into VB.<BR><BR>How do we do it dynamically?<BR><BR>Varma.<BR><BR>__________________________________________________<BR>Do You Yahoo!?<BR>Yahoo! Messenger - Talk while you surf! It's FREE.<BR>http://im.yahoo.com/<BR>-- <BR>Please see the official ORACLE-L FAQ: http://www.orafaq.com<BR>-- <BR>Author: Poosapati Varma<BR>INET: psgkv@yahoo.com<BR><BR>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051<BR>San Diego, California -- Public Internet access / Mailing Lists<BR>--------------------------------------------------------------------<BR>To REMOVE yourself from this mailing list, send an E-Mail message<BR>to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in!
<BR>the message BODY, include a line containing: UNSUB ORACLE-L<BR>(or the name of mailing list you want to be removed from). You may<BR>also send the HELP command for other information (like subscribing).</BLOCKQUOTE><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://im.yahoo.com/">Yahoo! Messenger</a> - Talk while you surf! It's FREE.
Received on Mon Oct 23 2000 - 08:52:16 CDT

Original text of this message

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