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

              Unassigned Unassigned
              mokraemer Marc
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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