0
点赞
收藏
分享

微信扫一扫

mysql查询数据为json格式的字段时,取json数据的某一个属性值

祈澈菇凉 2022-01-24 阅读 78
// 其中json_column 是数据格式为json的字段,id是要取值的属性名
select json_column ->> '$.id' from tableName where json_column != '' and json_column is not null;
举报

相关推荐

0 条评论