// 其中json_column 是数据格式为json的字段,id是要取值的属性名
select json_column ->> '$.id' from tableName where json_column != '' and json_column is not null;
mysql查询数据为json格式的字段时,取json数据的某一个属性值
阅读 79
2022-01-24
// 其中json_column 是数据格式为json的字段,id是要取值的属性名
select json_column ->> '$.id' from tableName where json_column != '' and json_column is not null;
相关推荐
精彩评论(0)