简体   繁体   中英

What variant of SQL does MariaDB use?

It's typical for a Relational Database Management System to use a specific variant of SQL. For example, SQL Server uses Transact-SQL aka T-SQL.

I understand MariaDB is based on MySQL (the RDBMS), and the SQL variant that MySQL uses is apparently itself also called MySQL (according to this question ). Should I assume MariaDB also uses the MySQL language?

I have tried several Google searches, but I've found nothing. It's tricky because of the conflation between the RDBMS and the language. Most results are just comparing MariaDB with MySQL (the RDBMS).

MariaDB does indeed use the same SQL dialect as MySQL.

But, later versions of MariaDB have extra features, which show up mostly as settings and functions in the query language. The MariaDB team's list of differences is here: https://mariadb.com/kb/en/library/mariadb-vs-mysql-features/

The big ones, from my personal perspective, mostly in MariaDB 10.2 and later.

Before MySQL 8, MariaDb had some capabilities absent in MySQL. These are all in MySQL 8+

MySQL Version 8 has better versions of REGEXP_REPLACE() and REXEXP_SUBSTR() than MariaDb's versions of the two .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM