标签:server select loading and friend 字段 code rom alt
SELECT * FROM [dbo].[I_Friend] T1
WHERE NOT EXISTS(SELECT 1 FROM [dbo].[I_Friend] T2 WHERE T1.UserId=T2.FriendUserId
AND T1.FriendUserId=T2.UserId AND T1.UserId>T2.UserId) and T1.UserId!= T1.FriendUserId
表名:I_Friend
去重的两个字段:UserId,FriendUserId
标签:server select loading and friend 字段 code rom alt
原文地址:https://www.cnblogs.com/smile-live/p/13212052.html