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

What is the advantage in De-normalizing tables in DB2?

1175


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

1194


What do you mean by cursor?

988


What is a page in db2?

1027


What is db2 plan table?

1049


What is the meaning concurrency in the db2 database?

1110


I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.

2065


What is the use of dclgen in db2?

1085


How do I copy a table in db2?

1000


What action db2 takes when a program aborts in the middle of a transaction?

1154


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

1146


What is the connection string to connect to the DB2 Database ?

1128


What is package in cobol db2?

1119


What is host variable in db2 cobol?

1077


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

1065