Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-29919

Support MYSQL Syntax for INSERT ON DUPLICATE KEY UPDATE

    XMLWordPrintable

Details

    Description

      Starting with MySQL 8.0.20 it supports a new syntax for INSERT ON DUPLICATE KEY UPDATE to refer the new entry in the insert statement:
      docu

      They use the AS keyword to refer to the new entries instead of using VALUE[S]()

      INSERT INTO t1 (a,b,c) VALUES (1,2,3),(4,5,6) AS new
        ON DUPLICATE KEY UPDATE c = new.a+new.b;
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              mokraemer Marc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1h
                  1h

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.