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

Answer Posted / vaibhav

We can insert by using the following command:-

Insert into tablename
(col1,col2,col3,....)
values(&emp-no, '&emp-name', .....)

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is image copy in db2?

564


What is meant by explain?

657


Why cursor is used in db2?

568


How to test SQL -911 error while developing COB-DB2 program

6701


How do I start db2 in windows?

554






What is buffer pool in the db2 database?

610


what is the responsibility of the construction superintendent

1655


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

573


Can we update view in db2?

554


What does db2 stand for?

594


what is diffrence b/w file-aid tool and file-aid utility???

4168


what is a corelated subquerry?

651


What is view db2?

618


have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

1229


How does db2 sample database connect?

564