delete t from t a where id in 
(select id from t as b where a.name = b.name and a.age = b.age and a.id<b.id)