原来我在一个表中有一些重复的记录FieldA=FieldA。
我想摆脱的骗子有FieldB=Y。
但是,我不想只是跑
Delete from TableA where FieldB=Y
因为我只想FieldB=Y在它是骗子时删除。我想我需要从
having count(*) >1
但我不确定那会是什么样子。
原来我在一个表中有一些重复的记录FieldA=FieldA。
我想摆脱的骗子有FieldB=Y。
但是,我不想只是跑
Delete from TableA where FieldB=Y
因为我只想FieldB=Y在它是骗子时删除。我想我需要从
having count(*) >1
但我不确定那会是什么样子。