The project is tested personally, and millions of pieces of data can be obtained instantly
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
The project is tested personally, and millions of pieces of data can be obtained instantly
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