mysql json 数组查询


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))

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM