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
Can you use max on a char column?
What's The Percentage Free Space ?
How many types of page locks can be held in db2?
How to check sequence on a table in db2?
What db2 400?
What's The Error Code For Unique Index Voilation?
What is check constraint in db2?
How to take backup of table in db2?
What is access path in db2?
What is db2?
Which component is responsible for processing sql statements and selecting access paths?
before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?
How to create backup table in db2?
Can we delete records from view?
What is null indicator in cobol db2?