how to replace variable value of a sql query dynamically
LoveODIMar 23 2010 — edited Mar 26 2010Hi 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