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

Answer Posted / siri

insert into tableName
(col1, col2, col3, col4, col5)
values
(val1, val2, val3, val4, val5),
(val1, val2, val3, val4, val5),
(val1, val2, val3, val4, val5),
(val1, val2, val3, val4, val5);

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which isolation level provides highest data integrity?

599


Which component is responsible for db2 startup and shutdown?

630


What is a trigger in the db2 database?

596


What is dbrm?

645


What is the use of db2?

588






What is the purpose of rollback and commit?

595


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

706


What is page size in db2?

563


What is performance tuning db2?

620


Can you use max on a char column?

638


Is ibm db2 free?

577


How is deadlock resolved?

650


What is database reorganization?

591


How do I connect my db2 database to ibm?

603


When reorg is used?

678