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
What is node in db2?
what is utility for parm lib
Why do we need reorg in db2?
What do you mean by commit and rollback?
run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...
What is the use of predicate?
How to find primary key of a table in db2?
How do I copy a table in db2?
List some fields from sqlca?
What is runstats db2?
What is nvl in db2?
Can we delete records from view?
What is the difference between bind and rebind in db2?
Outputs of explain are with matchcols = 0. What does this signify?
What is the difference between oracle and db2?