文章詳情頁
Laravel mysql 怎樣編寫JSON_CONTAINS query?
瀏覽:91日期: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. css - 如何使用 vue transition 實現 ios 按鈕一樣的平滑切換效果2. angular.js - 關于$apply()3. angular.js - angular內容過長展開收起效果4. docker安裝后出現Cannot connect to the Docker daemon.5. 關于python切片的問題6. javascript - 前端怎樣實現圖片剪切一部分上傳呢?像微信或者QQ上傳那樣呢?用的啥技術7. 網絡傳輸協議 - 以下三種下載方式有什么不同?如何用python模擬下載器下載?8. 多維數組如何在視圖中渲染9. linux - 升級到Python3.6后GDB無法正常運行?10. mysql - 把一個表中的數據count更新到另一個表里?
排行榜
