Hi all,
I want to do something like:
SELECT ID_Field from STable where [here comes a long list of conditions that I need to build dynamicaly]
Then I want to be able to say:
Update DTable set Field='Value' where ID_Field in (here I want to put the result from the above select).
(all the above code goes into a trigger)
I was trying to create a cursor from the first SELECT, but, reading the post I understand that this is not a recommended solution.
So, what should I do?
Thanks for helping me,
S
I want to do something like:
SELECT ID_Field from STable where [here comes a long list of conditions that I need to build dynamicaly]
Then I want to be able to say:
Update DTable set Field='Value' where ID_Field in (here I want to put the result from the above select).
(all the above code goes into a trigger)
I was trying to create a cursor from the first SELECT, but, reading the post I understand that this is not a recommended solution.
So, what should I do?
Thanks for helping me,
S