How to update more then one record using update?

Answers were Sorted based on User's Feedback



How to update more then one record using update?..

Answer / pratap singh

For this concern you can use or oprator along with where
clause, Example

WHERE DEPT_ID='D110' OR 'D001' OR 'D105'

Is This Answer Correct ?    7 Yes 0 No

How to update more then one record using update?..

Answer / sivakumar sekharannair

update query without "where" command will update multiple
rows in the table;

Is This Answer Correct ?    2 Yes 1 No

How to update more then one record using update?..

Answer / k

Don't give where command in update query

Is This Answer Correct ?    1 Yes 1 No

How to update more then one record using update?..

Answer / selvam a

Update a table using a symbolic cursor:
UPDATE WHERE CURRENT OF limits the scope of DB2 updates to
one row at a time, specifically the row your cursor is
positioned on.

Is This Answer Correct ?    0 Yes 0 No

How to update more then one record using update?..

Answer / 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

More DB2 Interview Questions

What is a clustering index ?

3 Answers  


What is page size in db2?

0 Answers  


what is the steps followed in EXPLAIN Process or EXPLAIN command. (Explain is for identifying the optimized access path but how or what is the steps for doing the EXPLAIN)

4 Answers   IBM,


Can you search give an array in the WHERE clause of a db2 query?

1 Answers  


What is null indicator in db2?

0 Answers  






What is db2 and what is the use of db2 optimizer?

0 Answers  


How do you retrieve the data from a nullable column?

2 Answers  


Hi. I am currently working as a application developer. I would like to persue a DB2 certification exam. Can anybody please provide me the details about this exam like Syllabus, Cost and how to take the certification?

2 Answers  


How does coalesce work?

0 Answers  


Name the various locking levels available?

0 Answers  


List out the buffer pools in db2

0 Answers  


Which isolation level provides maximum concurrency?

0 Answers  


Categories