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

Implement SQL standard Common Table Expression (CTE) support

    XMLWordPrintable

Details

    Description

      It would be great if MariaDB supported SQL standard Common Table Expressions (CTEs).

      WITH moved_rows AS (
          DELETE FROM products
          WHERE
              "date" >= '2010-10-01' AND
              "date" < '2010-11-01'
          RETURNING *
      )
      INSERT INTO products_log
      SELECT * FROM moved_rows;

      Attachments

        Issue Links

          Activity

            People

              igor Igor Babaev
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              18 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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