文章详情页
Laravel mysql 怎样编写JSON_CONTAINS query?
浏览:52日期:2022-06-13 18:44:02
问题描述
例如sql : select * from products where JSON_CONTAINS(tags, ’[3, 4]’) limit 3;
在laravel 怎样编写对应的语法?
问题解答
回答1:使用selectraw 或者DB::query(' select * from products where JSON_CONTAINS(tags, ’[3, 4]’) limit 3;')
相关文章:
1. python - 获取到的数据生成新的mysql表2. javascript - js 对中文进行MD5加密和python结果不一样。3. mysql里的大表用mycat做水平拆分,是不是要先手动分好,再配置mycat4. window下mysql中文乱码怎么解决??5. sass - gem install compass 使用淘宝 Ruby 安装失败,出现 4046. python - (初学者)代码运行不起来,求指导,谢谢!7. 为啥不用HBuilder?8. python - flask sqlalchemy signals 无法触发9. python的文件读写问题?10. 为什么python中实例检查推荐使用isinstance而不是type?
排行榜
