How to update more then one record using update?
Answer Posted / guna
UPDATE table1 set columnname = (SELECT columnname from
table2 where some condition)
You can also use EXISTS instead of '=' for updating
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Why do we need reorg in db2?
What does reorg do in db2?
When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?
What is runstats and reorg in db2?
How can tablespace be moved to another dasd volume that is allocated for that tablespace?
What is schema in db2?
What is precompiler in db2?
What is collection in db2 bind?
What parameters are used to control the free space in DB2?
What is an instance in db2?
What is the purpose of using commit?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
What action db2 takes when a program aborts in the middle of a transaction?
What is explain plan in db2?
What is database reorganization?