一岂贩、如果兩行記錄完全相同
select distinct * from employees;
二拼缝、如果記錄除id妈踊,其他相同了嚎,可能是錄入記錄有誤,如果要保持重復(fù)記錄最小的id;
delete from employees where in not in
(select min_id from?
(select min(id) min_id from employees group by name) temp);
一岂贩、如果兩行記錄完全相同
select distinct * from employees;
二拼缝、如果記錄除id妈踊,其他相同了嚎,可能是錄入記錄有誤,如果要保持重復(fù)記錄最小的id;
delete from employees where in not in
(select min_id from?
(select min(id) min_id from employees group by name) temp);