SELECT * FROM ( SELECT id,class,Name,ROW_NUMBER() over(PARTITION BY class ORDER BY id desc) AS row FROM geo ) AS t WHERE t.row =1
表去重
按照Class去重,取ID最大的一条