Can anyone tell me how to best run a delete/inster/update that has been stored in a string?
E.g.:
I can code the following:
But, I would like something like:
Can I do that?/What do I have to do to make it work?
E.g.:
I can code the following:
Code:
Exec SQL delete from table1 where lastUse < current timestamp - 7 days;
Code:
MyStatement = 'delete from table1 where lastUse < current timestamp - 7 days'; Exec SQL :MyStatement;
Comment