表格T 的欄位A 跟  欄位B 相同即為重複

sn 為唯一值

delete 表格T where sn not in(select max(sn) from 表格T group by 欄位A, 欄位B)

相关文章