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
How can you count the number of rows from a table tab?
What type of database is db2?
What are the various data types available in db2?
Which component is responsible for db2 startup and shutdown?
How to fetch the last row from the table in SQL (db2)?
What is ibm db2 client?
How do we specify index to include or not during bind process.
What is schema in db2?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
What is dbrm in db2 database?
what is utility for parm lib
How do I delete a table in database?
How does a cursor work?
What is data manager?
What kind of database is db2?