方法一:
SELECT * FROM table_name AS ta WHERE ta.唯一键 = ( SELECT max( tb.唯一键 ) FROM table_name AS tb WHERE ta.判断重复的列 = tb.判断重复的列 );
方法二:
select b.* from (select a.* from tableA a order by a.create_time desc) tableB b group by b.判断重复的列;
方法一:
SELECT * FROM table_name AS ta WHERE ta.唯一键 = ( SELECT max( tb.唯一键 ) FROM table_name AS tb WHERE ta.判断重复的列 = tb.判断重复的列 );
方法二:
select b.* from (select a.* from tableA a order by a.create_time desc) tableB b group by b.判断重复的列;