Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Plan is an executable form of sql statements,But what exactly resides inside a Plan. what are the details inside Plan.

2 Answers   IBM,


What is filter factor?

2 Answers  


What is schema in db2?

0 Answers  


What is host variable?

0 Answers  


Explain db2.

0 Answers  


Do we need cursor for Count(*)?

4 Answers   iGate,


Explain how can you do the explain of a dynamic sql statement?

0 Answers  


Can any one tell me about Restart logic in DB2.

2 Answers  


Where would you find information about the type of database authority held by the user?

2 Answers  


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

0 Answers  


explain about index with examples

2 Answers   Syntel,


What are the prerogatives?

0 Answers  


Categories