1
如何寫一個複雜的查詢在Laravel 5.3,我嘗試,但結果並不fullfill寫Netsted選擇查詢在Laravel 5.3
查詢是否有
SELECT * FROM (SELECT posts.post_id FROM posts WHERE ((posts.user_id = 1 AND posts.user_type = 'user') OR (posts.user_id IN (1) AND posts.user_type = 'page'))) posts WHERE posts.post_id > '0' ORDER BY posts.post_id DESC
,我們可以編寫使用Larave模型? 幫我
此感謝尼斯的答案,但我使用模型來構建SELECT查詢 –
@NarendraJhala [這](http://laravel.io/論壇/ 03-05-2014-nested-query-in-from)可以幫助你更好地理解, –