注意一:字段类型为varchar、char、text等字符类型
注意二:内容为json
注意三:mysql服务器版本为5.7及以上
语法:select * from 表名 where 字段->'$.属性'='查询内容';
select * from table1 where col1->'$.name'='xiaoming';
注意一:字段类型为varchar、char、text等字符类型
注意二:内容为json
注意三:mysql服务器版本为5.7及以上
语法:select * from 表名 where 字段->'$.属性'='查询内容';
select * from table1 where col1->'$.name'='xiaoming';
本文标题:mysql json字符串查询
本文链接:https://www.haomeiwen.com/subject/thxrqltx.html
网友评论