以下查詢將產(chǎn)生 100 行:$qtop = Quest::where('ttype',$id)
->where('country', $ucountry )
->where('score', '>' , 240 )
->orderby('score', 'desc')
// ->take(25)
->get();而不是使用->take(25)我怎樣才能占總行數(shù)的 25%?
如何在 Laravel 查詢中使用百分比
喵喵時(shí)光機(jī)
2022-07-16 16:22:44