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