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

MINUS allowed as synonym for EXCEPT Set Operation for Oracle compatibility

    Details

      Description

      SQL> SELECT first_name, last_name FROM user
      -> MINUS
      -> SELECT first_name, last_name FROM customer
      -> ;
      ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT first_name, last_name FROM customer' at line 3

      SQL> SELECT first_name, last_name FROM user
      -> EXCEPT
      -> SELECT first_name, last_name FROM customer
      -> ;
      OK

      Official Oracle documentation does not even mention the EXCEPT clause. So it is quite probable that many of those statements exist in real world...

      https://en.wikipedia.org/wiki/Set_operations_(SQL)#EXCEPT_operator
      https://docs.oracle.com/cd/B19306_01/server.102/b14200/queries004.htm

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              oli Oli Sennhauser
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: