delete from table where username in (select username from (select username,count(*) from table group by username having count(*)>1)) 作者: 左右中 时间: 2007-12-25 23:10
delete from Table
where username in
(select distinct username from Table group by username having count(username)>1) 作者: use2 时间: 2007-12-26 09:28
呵呵,LS的可以了
谢谢大家~!!! 作者: 打击者 时间: 2007-12-26 09:36
DELETE FROM [table]
WHERE EXISTS
(SELECT COUNT(username), username
FROM [table] t
WHERE t.username = username
GROUP BY username
HAVING (COUNT(username) > 1))