Unable to interpret environmental variable
Hi All,
I am coding a script which is intended to do the following :
1. I fetch a column from the oracle table which has sql statement.
For ex: select column1 from table1 where column2=${env_var_value}
2. I have set the environmental variable in my Solaris OS.
I fetch this column value into a variable and I have to run the statement.
Now the problem is that when I fetch the column value into a variable in my program, the environmental variable doesn't get interpreted.
It just places the column value i.e., select column1 from table1 where column2=${env_var_value} without substituting the env_var_value..
Request your precious guidance and help in this regard.
Thanks in advance
I am coding a script which is intended to do the following :
1. I fetch a column from the oracle table which has sql statement.
For ex: select column1 from table1 where column2=${env_var_value}
2. I have set the environmental variable in my Solaris OS.
I fetch this column value into a variable and I have to run the statement.
Now the problem is that when I fetch the column value into a variable in my program, the environmental variable doesn't get interpreted.
It just places the column value i.e., select column1 from table1 where column2=${env_var_value} without substituting the env_var_value..
Request your precious guidance and help in this regard.
Thanks in advance