mysql 5.7数据类型支持json格式

create table t_json(content json);

insert into t_json values('{"name":"howhy","age":12,"mobile":"1388888888"}');

select json_extract(content,"$.name") from t_json;

select content->>"$.name" from t_json;

 

posted @ 2022-06-11 15:03  howhy  阅读(112)  评论(0编辑  收藏  举报