摘要: 1. 增加字段 flag2. 标记不需要删除的记录UPDATEUsersSET flag = 1FROM (SELECT MAX(UserId) AS userid FROM Users AS Users_1 GROUP BY UserName) AS a INNER JOIN Users ON Users.UserId = a.userid3.删除记录DELETE FROM users WHER... 阅读全文
posted @ 2006-11-13 15:57 海潮的博客 阅读(391) 评论(0) 推荐(0) 编辑