Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to replace variable value of a sql query dynamically

LoveODIMar 23 2010 — edited Mar 26 2010
Hi all,

Trying to execute sql queries present in Oracle table and the query it self contains the ODI variable #EMP_NO.
At the run time we thought of passing the variable values.

table contains query like

update table <table name> set <column name>= 5000 where emp_no = #EMP_NO

We need to execute the sql query using a ODI procedure, to pick the sql query from table we use another variable #varSQLID and in the command on source tab wrote like

select sql_query varSQL from emp_sql where query_id=#varSQLID

Command on target
-----------------------------
#varSQL

when ever I tried to execute I am getting error please let me know what changes are required .

The question is whether it's possible to replace the variable value present in the above sql ?

regards,
Palash Chatterjee
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 23 2010
Added on Mar 23 2010
5 comments
4,221 views