📜  如何删除mysql代码示例中的所有重复项

📅  最后修改于: 2022-03-11 15:04:59.184000             🧑  作者: Mango

代码示例1
DELETE FROM FriendsData WHERE fID 
       NOT IN ( SELECT fID FROM FriendsData 
                   GROUP BY UserID, FriendsUserID, IsSpecial, CreatedBy)