文章详情页
Laravel mysql 怎样编写JSON_CONTAINS query?
浏览:75日期: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;')
相关文章:
排行榜
