In db2, how do you insert multiple rows in 1 query using a.)
Cursors, b.) Normal query?? Give syntax for both.
Answer Posted / adi
MOVE +100 TO HV-NUM-ROWS.
INSERT INTO EMP
(EMPNO, LASTNAME, FIRSTNME,
MIDINIT, SALARY, BONUS)
VALUES (:HV-EMPNO-ARRAY,
:HV-LASTNAME-ARRAY,
:HV-SALARY-ARRAY,
:HV-BONUS-ARRAY)
FOR :HV-NUM-ROWS
ATOMIC
all array elements will have a 100 occur clause
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are bind parameters in db2?
What is difference between alias and synonym in db2?
How many databases can be created inside an instance in db2 ?
List out the data types available.
What db2 400?
Mention the location where the output received from explain statement is stored.
Mention the different locking levels that are available in db2.
List some fields from sqlca?
What is dbrm library?
What is node in db2?
Explain about open switch business continuity software?
What does db2 stand for?
Which isolation level provides highest data integrity?
What is nvl in db2?
Explain how can you do the explain of a dynamic sql statement?