HOW to get the bind variables list.


Posted on 16th Feb 2014 07:03 pm by admin

I've the following problem : I've some SQL queries stored in my DB as VARCHAR2 values.
I need to use DBMS_SQL in order to execute them.
In theese SQL statements I have some bind variables like :NUMORD. (ex. SELECT 'X' FROM YYYY WHERE FIELD_1 = :NUMORD).
I don't know "a priori" names and number of such variables.
Did you know?Explore Trending and Topic pages for more stories like this.
Is there any way to have a list of such bind variables ?
I found DBMS_DESCRIBE but is seems to act only on stored procedures/functions.
I know I can tray to inspect the code looking for every ':' but a cleaner solution woulf be appreciated.
Tks
No comments posted yet

Your Answer:

Login to answer
135 Like 39 Dislike
Previous forums Next forums
Other forums

Change snippet to use CURDATE
I am using time() in the snippet below, I would like to use CURDATE() and have the database setup fo

HTML Email rec'd as Source Code
The code does create and send the email successfully. However, the message shows as html code and n

Deleting Partners on the Customer Master.
Does SAP handle removing the Partner from Open Sales Orders when a Partner is deleted in the Custome

Automatic Webpage ??
I have a page www.mysite.com/test.php with a
<form>
<textarea name=&q

Simple AND question
Hello,

I've got following code:

Code: if(strpos($row[13],"http://")

Multiple Options for a Single Page
For this example I want to use the Handlers option which is under Fed Admin and all the related codi

Two fgetcsv related questions ;D
First of im trying to get a file from a merchants server but the directory is protected, I know the

Recognising Revenue daily
Hello.
Has anyone come across daily recognition of deferred income?
We want to implement R

Rounding a number queried from a database
I know that to display a rounded number you just do echo "round($number)";. But how would

single page with referrer to show correct page
I have a simple website with a couple of different pages. I would like to be able to in a div tag w

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash