项目亲测,百万条数据瞬间获取


select a.* from table_test a ,(select b.gcol,max(b.id) maxid from table_test b group by b.gcol )c where c.maxid = a.id


Logo

更多推荐