Hallo,
I have a question about DB2 9.1.6 for LUW:
For DB2 UDB V8 for z/OS, an application program can issue a multiple-row insert using static SQL like this:
EXEC SQL
INSERT INTO DSN8810.ACT
(ACTNO, ACTKWD, ACTDESC)
VALUES (:HVA1, :HVA2, :HVA3)
FOR :NUM-ROWS ROWS
END-EXEC.
I checked the manuals for DB2 9.1.6 for...
What you can do in LUW is the standard stuff:
Code:
INSERT INTO ...
VALUES ( 1st-row ),
( 2nd-row ),
...;
Or you use dynamic SQL and compose the SQL statement that way.
There is "insert buf" bind parameter for "buffered insert". I've only used it with import in a multi-partitioned env. Don't know if this is similar to multiple-row insert on z/OS.
Quote:
Originally Posted by db2girl
There is "insert buf" bind parameter for "buffered insert". I've only used it with import in a multi-partitioned env. Don't know if this is similar to multiple-row insert on z/OS.
He want to insert from the AREA which is not a possible.
He can create a file and use LOAD utility...
Multi-row insert is supported. Checkout the docs
Multi-row SQL operations with the IBM Data Server Driver for JDBC and SQLJ
In case of CLI it is supported via SQLBulkOperations API
SQLBulkOperations
Regards,
Sawan Gupta
Quote:
Originally Posted by stratmf
Hallo,
I have a question about DB2 9.1.6 for LUW:
For DB2 UDB V8 for z/OS, an application program can issue a multiple-row insert using static SQL like this:
EXEC SQL
INSERT INTO DSN8810.ACT
(ACTNO, ACTKWD, ACTDESC)
VALUES (:HVA1, :HVA2, :...
Quote: Originally Posted by db2girl There is "insert buf" bind parameter for "buffered insert". I've only used it with import in a multi-partitioned env. Don't know if this is similar to multiple-row insert on z/OS. He want to insert from the AREA which is not a possible. He can create a file and use LOAD utility to solve this problem. Lenny
Hallo, I have a question about DB2 9.1.6 for LUW: For DB2 UDB V8 for z/OS, an application program can issue a multiple-row insert using static SQL like this: EXEC SQL INSERT INTO DSN8810.ACT (ACTNO, ACTKWD, ACTDESC) VALUES (:HVA1, :HVA2, :HVA3) FOR :NUM-ROWS ROWS END-EXEC. I checked the manuals for DB2 9.1.6 for LUW, but I didn't find anything similar... Does a feature like this exist for this DB2 version? If not, will it be available in...
There is "insert buf" bind parameter for "buffered insert". I've only used it with import in a multi-partitioned env. Don't know if this is similar to multiple-row insert on z/OS.
Multi-row insert is supported. Checkout the docs Multi-row SQL operations with the IBM Data Server Driver for JDBC and SQLJ In case of CLI it is supported via SQLBulkOperations API SQLBulkOperations Regards, Sawan Gupta
Quote: Originally Posted by stratmf Hallo, I have a question about DB2 9.1.6 for LUW: For DB2 UDB V8 for z/OS, an application program can issue a multiple-row insert using static SQL like this: EXEC SQL INSERT INTO DSN8810.ACT (ACTNO, ACTKWD, ACTDESC) VALUES (:HVA1, :HVA2, :HVA3) FOR :NUM-ROWS ROWS END-EXEC. I checked the manuals for DB2 9.1.6 for LUW, but I didn't find anything similar...Frank Yes, static SQL does exist in DB2/LUW, just...
Related threads on "dBforums - Database Support Community":
Thread profile page for "Multiple row insert" on http://www.dbforums.com.
This report page is a snippet summary view from a single thread "Multiple row insert", located on the Message Board at http://www.dbforums.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity