困扰了很久
$result = Db::name('test')->group('ymd,code')->where('ymd', 'in', [20221003, 20221002])->field(Db::raw('id,ymd,code,sum(count) as count'))->select();
困扰了很久
$result = Db::name('test')->group('ymd,code')->where('ymd', 'in', [20221003, 20221002])->field(Db::raw('id,ymd,code,sum(count) as count'))->select();
困扰了很久
$result = Db::name('test')->group('ymd,code')->where('ymd', 'in', [20221003, 20221002])->field(Db::raw('id,ymd,code,sum(count) as count'))->select();