SELECT
id,business_id,
max( allot_number )
FROM
( SELECT id,allot_number,create_time,business_id FROM bus_allot_record ORDER BY business_id, create_time DESC LIMIT 100000000 ) a
WHERE
create_time >= ‘2019-10-21 10:20:00’
AND create_time <= ‘2019-10-21 13:30:00’ and allot_number <> 1
GROUP BY
business_id ;
mysql error,mysql.Installer安装,查mysql账号信息,linux中如何退出mysql,mysql模糊对比,mysql 分组后合计