Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Multiple row insert

Started 1 month, 3 weeks ago 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...
Site: dBforums - Database Support Community  dBforums - Database Support Community - site profile
Forum: DB2  DB2 - forum profile
Total authors: 8 authors
Total thread posts: 10 posts
Thread activity: no new posts during last week
Domain info for: dbforums.com

Other posts in this thread:

ARWinner replied 1 month, 3 weeks ago
No, it does not exist for DB2 for LUW. You will have to as IBM if it will ever be implemented. Andy

Lenny77 replied 1 month, 3 weeks ago
It is not a possible in DB2. All about insert: DB2 Universal Database Lenny

stolze replied 1 month, 3 weeks ago
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.

db2girl replied 1 month, 3 weeks ago
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.

Lenny77 replied 1 month, 3 weeks ago
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...

db2dummy1 replied 1 month, 3 weeks ago
Yep, like I have always said, UNIX is only 30 years or so behind z/OS

sawangupta replied 1 month, 3 weeks ago
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

stolze replied 1 month, 3 weeks ago
The above was static SQL. No multi-row insert as on z/OS is available in DB2 LUW for that API.

dr_te_z replied 1 month, 3 weeks ago
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, :...

 

Top contributing authors

Name
Posts
Lenny77
2
user's latest post:
Multiple row insert
Published (2009-11-05 13:09:00)
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
stolze
2
user's latest post:
Multiple row insert
Published (2009-11-06 06:17:00)
The above was static SQL. No multi-row insert as on z/OS is available in DB2 LUW for that API.
ARWinner
1
user's latest post:
Multiple row insert
Published (2009-11-05 11:44:00)
No, it does not exist for DB2 for LUW. You will have to as IBM if it will ever be implemented. Andy
stratmf
1
user's latest post:
Multiple row insert
Published (2009-11-05 11:26:00)
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...
db2dummy1
1
user's latest post:
Multiple row insert
Published (2009-11-05 21:25:00)
Yep, like I have always said, UNIX is only 30 years or so behind z/OS
db2girl
1
user's latest post:
Multiple row insert
Published (2009-11-05 12:58:00)
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.
sawangupta
1
user's latest post:
Multiple row insert
Published (2009-11-06 00:51:00)
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
dr_te_z
1
user's latest post:
Multiple row insert
Published (2009-11-07 13:53:00)
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":

Related threads on other sites:

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