Suppose we have a query for update
update table1
set col1 = 'val1'
where col2=(select .... from ...)
suppose the subquery does not return any record, what will
happen to update?
Answer Posted / santosh kumar d
If the col2 field having any null value then that value to
be updated.
If col2 doesn't have any null value then record remains same
nothing will be updated.
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What is node in db2?
What is table space in db2?
What are the 2 sqlcodes that are returned?
What is a storage group (stogroup)?
What is collection in db2 bind?
What is declare cursor?
How do you eliminate duplicate values in db2?
File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
What is the physical storage length of time data type?
What is package in cobol db2?
What is the role of the data page in the db2 database?
What db2 400?
Is db2 a programming language?
List out the buffer pools in db2