If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I am trying to write a script which will concatenate some text (to form a delete command for a separate db) and a field value. My select statement looks like :
Select Concat ('delete * from adifftable where field1 =','''field1''') from myaudittable where myaudittable_date>trunc(sysdate)-1;
This currently returns:
delete * from adifftable where field1 = 'field1'
What I actually want to see is (i.e. I want to return the value of field1)
delete * from adifftable where field1 = '12345';
Can anyone give me any pointers (as I am tearing my hair out!)