// 其中json_column 是数据格式为json的字段,id是要取值的属性名
select json_column ->> '$.id' from tableName where json_column != '' and json_column is not null;
mysql查询数据为json格式的字段时,取json数据的某一个属性值
最新推荐文章于 2024-05-13 17:50:59 发布
// 其中json_column 是数据格式为json的字段,id是要取值的属性名
select json_column ->> '$.id' from tableName where json_column != '' and json_column is not null;