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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

1007


Before you give the explain statement, what are the prerogatives?

970


What db2 400?

1106


What is the physical storage length of the data types date, time, and timestamp?

1042


Why do chiropractors use drop table?

1046


How is a typical db2 batch pgm executed?

1110


What does db2 mean?

957


i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?

2476


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

1005


List down the data types in the db2 database.

1043


What is the information associated with sysibm.syslinks table?

1058


Which is faster delete or truncate?

1070


How do you eliminate duplicate values in db2?

1110


How to execute stored procedures?

1068


What is host variable?

1016