首页 > 数据库技术 > 详细

mysql json 数组查询

时间:2021-02-05 19:11:42      阅读:36      评论:0      收藏:0      [点我收藏+]
select bundle_config from app_resource where valid=1 and  app_name=appkey01 limit 1;

-- select * from log2 where JSON_CONTAINS(data,JSON_OBJECT(id, "142"))

select * from app_patch where valid=1 and
JSON_CONTAINS(batch_content,JSON_OBJECT(dimType,2))
and JSON_CONTAINS(batch_content,JSON_OBJECT(dimId,111));



select * from app_patch where valid=1
and JSON_CONTAINS(test,JSON_ARRAY(111,333));

select * from app_patch where valid=1 and
JSON_CONTAINS(test,JSON_OBJECT(dimType,2))
and JSON_CONTAINS(test,JSON_OBJECT(dimId,111))

 技术分享图片

 

mysql json 数组查询

原文:https://www.cnblogs.com/honghong75042/p/14379054.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!