-3
查詢詳細信息我怎樣才能在laravel做到這一點查詢
SELECT userfbimages_id, count(*) FROM votes GROUP BY userfbimages_id
HAVING count(*) >= ALL (SELECT count(*) FROM votes GROUP BY userfbimages_id)
查詢詳細信息我怎樣才能在laravel做到這一點查詢
SELECT userfbimages_id, count(*) FROM votes GROUP BY userfbimages_id
HAVING count(*) >= ALL (SELECT count(*) FROM votes GROUP BY userfbimages_id)
DB::statement('SELECT userfbimages_id, count() FROM votes
GROUP BY userfbimages_id
HAVING count() >= ALL (SELECT count(*) FROM votes GROUP BY userfbimages_id)');
我想:SELECT * FROM票GROUP BY userfbimages_id HAVING COUNT(*)> = ALL(SELECT COUNT(*)FROM票GROUP BY userfbimages_id) –
調用未定義的方法Illuminate \ Database \ Query \ Builder :: statement() –
是否包括數據庫? –