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 role of the cursor in db2?

633


How to check sequence on a table in db2?

593


How to connect to db2 database from windows command line?

556


List out the data types available.

693


What is a db2 schema?

756






What is alias in db2?

561


Which isolation level provides highest data integrity?

587


Which command is used to connect to a database in DB2 ? Give the Syntax.

590


Is db2 a database?

565


What is bind plan?

602


How to check table size in db2 sap?

569


What is meant by explain?

654


How does cobol compile db2 program?

600


What is database alias db2?

591


What is the physical storage length of date data type?

719