我如何在laravel中执行此查询

时间:2016-02-16 22:18:20

标签: laravel-5.2

查询详情

String.Replace()

1 个答案:

答案 0 :(得分:0)

DB::statement('SELECT userfbimages_id, count() FROM votes 
               GROUP BY userfbimages_id 
               HAVING count() >= ALL (SELECT count(*) FROM votes GROUP BY userfbimages_id)');