MySQL获取group后所有组的第一条数据

https://stackoverflow.com/a/28090544/8025086

https://www.xaprb.com/blog/2006/12/07/how-to-select-the-firstleastmax-row-per-group-in-sql/

猜你喜欢

转载自www.cnblogs.com/buxizhizhoum/p/10658122.html