# MySQL 和 MariaDB 之间的 JSON 支持

**URL:** <https://www.isharkfly.com/t/mysql-mariadb-json/16853>\
**Category:** 数据库\
**Tags:** mariadb, mysql\
**Created:** [January 27, 2025, 3:26pm UTC](https://www.isharkfly.com/t/mysql-mariadb-json/16853 "2025-01-27T15:26:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hex](https://www.isharkfly.com/user_avatar/www.isharkfly.com/hex/32/21953_2.png) [@hex](https://www.isharkfly.com/u/hex)\
**Post date:** [January 27, 2025, 3:26pm UTC](https://www.isharkfly.com/t/mysql-mariadb-json/16853/1 "2025-01-27T15:26:35Z")

</div>

根据 RFC 7159 参考，MySQL 和 MariaDB 都能原生的支持 JSON。

MySQL 支持 JSON 的最低版本为 5.7。

其中的区别在于，MySQL 把 JSON 存储为 2 进制的对象，MariaDB 中的 JSON 数据存储为 String。

 ![](https://com-isharkfly-discourse.s3.dualstack.us-east-2.amazonaws.com/com-isharkfly-www/discourse-uploads/original/3X/8/c/8c5a32067f7cb71d463ef8a01e7fc40f21e020a1.png)
