Mysql 5.7 vs MariaDb 10.3 SQL syntax differences

View creation

MariaDB: CREATE VIEW IF NOT EXISTS `x`

Mysql:  CREATE OR REPLACE VIEW `x`

Regexp

MariaDB: supports lookbehind in REGEXP

Mysql: only supports basic REGEXPR

FOREIGN KEY

MariaDB: ALTER TABLE `x` DROP CONSTRAINT `y`;

MySQL: ALTER TABLE `x` DROP FOREIGN KEY `y`

Tested with versions “10.3.24-MariaDB-1:10.3.24+maria~bionic-log” and “MySQL 5.7.27-log”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s