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...

In db2, how do you insert multiple rows in 1 query using a.)
Cursors, b.) Normal query?? Give syntax for both.

Answer Posted / shekhar

insert into table1
select * from table2
where cond

this query will insert multiple rows at once.

there is load utility of DB2 can help in inserting bulk data from data file.

Plz correct me if i m wrong.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you find the maximum value in a column in db2?

1108


How do I add a column in db2?

1053


Is schema the same as database?

1062


Define check constraint.

1084


What is declare cursor?

1127


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

1065


Name the lockable units in DB2?

1133


What is a db2 schema?

1241


How can tablespace be moved to another dasd volume that is allocated for that tablespace?

1242


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

1090


How to check last update on table in db2?

1063


Highlight all the advantages that are attached to a package.

1121


What is a db2 collection?

1053


What is a bind card?

1225


What is buffer pool and list some of them?

1043