MySQL Compatibility

MatrixOne SQL syntax conforms with MySQL 8.0.23 version.

SQL TypeSQL SyntaxCompability with MySQL8.0.23
DDLCREATE DATABASEA database with Chinese name will be displayed incorrectly.
Names with Latins support limitedly.
ENCRYPTION can be used but doesn’t work till now.
CREATE TABLETemporary tables are not supported seperatedly.
Partition tables are not supported.
Create table .. as clause is not supported now.
All column level constraints are not supported now.
DEFAULT can be supported now.
For cluster table, there should be properties(“bucket”=”n”) in the end of DDL.
KEY(column) is not supported yet.
CREATE other projectsNot supported now.
ALTERNot supported now.
DROP DATABASESame as MySQL.
DROP TABLESame as MySQL.
Drop Other objectsOnly DROP INDEX is supported.
DMLINSERTLOW_PRIORITY, DELAYED, HIGH_PRIORITY are not supported now.
Insert with select is not supported now.
Batch Insert can be supported less than 5,000 rows.
ON DUPLICATE KEY UPDATE is not supported now.
DELAYED is not supported now.
HAVING clause is not supported now.
Names with Latins support limitedly.
The current mode is just like only_full_group_by mode in MySQL.
DELETENot supported now.
UPDATENot supported now.
SELECTOnly INNER JOIN with GROUP BY and ORDER BY is supported in multi table scenarios.
Table alias is not supported in INNER JOIN.
Sub query is not supported now.
Distinct is limitedly support.
For clause is not supported now.
INTO OUTFILE is limitedly support.
LOAD DATAOnly csv files can be loaded currently.
The enclosed character shoud be “”.
FILEDS TERMINATED BY should be “,” or “
LINES TERMINATED BY should be “\n”.
SET is not supported now.
Local key word is not supported now.
Relative path is limited supported now. Only based on mo-server file can be supported.
Database Administration StatementsSHOWOnly show tables and show databases are supported.
Show CREATE TABLE and CREATE DATABASE are supported.
Where can be supported limitedly.
Other statementsNot supported now.
Utility StatementsUSEUse database is the same as MySQL.
ExplainThe result of explain a SQL is quite different with MySQL.
Other statementsNot supported now.
Data TypesInt/Bigint/Smallint/TinyintSame as MySQL.
char/varcharSame as MySQL.
Float/doubleThe precsion is a bit different with MySQL. It will be adjusted in future release.
DateOnly ‘YYYY-MM-DD’ and ‘YYYYMMDD’ formats are supported.
DatetimeOnly ‘YYYY-MM-DD HH:MM:SS’ and ‘YYYYMMDD HH:MM:SS’ formats are supported.
Other typesNot supported now.
Operatiors“+”,”-“,”*”,”/“Same as MySQL.
DIV, %, MODNot supported now.
LIKESupported with constraints.
INSupported for constant lists
NOT, AND, &&,OR, “||”Same as MySQL.
XORNot supported now.
MAX, MIN, COUNT, AVGSame as MySQL.
CASTSupported limitedly.