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

Define buffer pool.

0 Answers  


Name the various locking levels available?

0 Answers  


Q4. How will you get the count of record without using COUNT verb in query?

2 Answers   IBM,


what is difference between Plan and Package

1 Answers   Syntel,


How do you simulate the explain of an embedded sql statement in spufi/qmf?

0 Answers  






Hi this is sures. i need to practice the ibm mainframes.could u telme how can i get userid from IBM.how much cost they will collect for one user id.can send me the details please.thanq

2 Answers  


Explain correlated sub-queries.

0 Answers  


Is db2 a database?

0 Answers  


what's the best lock size that you could use when you create a tablespace?

2 Answers   IBM,


How to update more then one record using update?

5 Answers   IBM,


How to create backup table in db2?

0 Answers  


I want to fetch the 10th row of a table which has been changed.How can I do it without going thru all the rows.

5 Answers  


Categories