gpt4 book ai didi

mysql - Maria DB - 具有 Json 类型列的表

转载 作者:行者123 更新时间:2023-11-29 06:59:50 24 4
gpt4 key购买 nike

在MariaDB中创建一个支持Json类型数据的表。

代码:

CREATE TABLE `post` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT ,
`title` varchar(255) NOT NULL ,
`options` json NOT NULL ,
PRIMARY KEY (`id`)
);

最佳答案

MariaDB 不支持 JSON 列类型。只有 MySQL 5.7+ 可以。

关于mysql - Maria DB - 具有 Json 类型列的表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43904965/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com