on 06-26-2008 6:29 AM
Hi All,
Can we write a Select for update query in the sender JDBC?
If yes, then if the select fails for some reasons for some rows, will the update happen only for the rows selected or for all the rows marked for select?
Please help!!
Thanks n Regards
Pushpinder Kaur
Hi,
The Select statement failes then no data will be selecetd, if selcet Statement have selecetd any rows then only those filtered rows will be updated with Update Query. Others will not be cahnged.
In Update you can use inner statements with select
e.g. UPDATE table SET processed = (SELECT testFlag FROM table WHERE processed = 0;) WHERE processed = 0;
Thanks
swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.