Skip to Main Content
IBM Data and AI Ideas Portal for Customers


This portal is to open public enhancement requests against products and services offered by the IBM Data & AI organization. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:


Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,


Post your ideas

Post ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

IBM Employees should enter Ideas at https://ideas.ibm.com


Status Delivered
Workspace Db2 for z/OS
Created by Guest
Created on Apr 28, 2023

Db2Z INSERT with VALUES should allow multiple rows

Db2 LUW and many other RDMS allow one INSERT with VALUES to insert multiple rows at once.

Db2 Z does not allow that syntax. Db2 Z INSERT with VALUES only allows one row at a time

So if you have multiple rows you want to insert with the INSERT using VALUES then you need multiple INSERT statement. Fine. minor annoyance but OK.

 

This limitation is clear in the documentation.

https://www.ibm.com/docs/en/db2-for-zos/12?topic=statements-insert

 

This RFE is for IBM to enhance INSERT with VALUES to allow multiple rows. So INSERT behaves like every other RDBMS in the world.

 

Why? Not for me and my existing application. They already work around this minor limitation.

 

But I think this limitation is off-putting to developers who are new to Db2Z. They may have generic tools that generate INSERT scripts with VALUES with multiple rows. But now they have this limitation.


thanks

Needed By Not sure -- Just thought it was cool
  • Admin
    Janet Figone
    Reply
    |
    Oct 21, 2024

    This will be delivered in APAR PH62561 and enabled with APAR PH62635.

    1 reply
  • Guest
    Reply
    |
    May 25, 2023

    I was expecting such, even documentation below allows statement

    https://www.ibm.com/docs/en/i/7.1?topic=statement-inserting-rows-using-values-clause

    INSERT INTO PROJECT (PROJNO, PROJNAME, DEPTNO, RESPEMP, PRSTDATE)

    VALUES('HG0023', 'NEW NETWORK', 'E11', '200280', CURRENT DATE),

    ('HG0024', 'NETWORK PGM', ''E11", '200310', CURRENT DATE);


10 MERGED

multi row Insert in values clause of the INSERT sql statement

Merged
Db2 zOS should have the capability to insert multiple rows in the values clause of the SQL INSERT statement e.g. INSERT INTO schema.table ( col1, col2, col3 )VALUES (value11, value12, value13), (value21, value22, value23), (value31, value32, value...
about 1 year ago in Db2 for z/OS 1 Delivered