tp5分組查詢


$data=DB::name('goods_common')->alias('a')->join('all580_goods_attractions w','a.common_id = w.common_id')->join('all580_goods_tickets t','a.common_id = t.common_id')->where($where)->where('goods_state','>',0)->where('t.t_status=0')->group('common_id')->field('a.*,w.LEVEL,min(price)as price')->select();


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM