锘??xml version="1.0" encoding="utf-8" standalone="yes"?>av丝袜在线,久久av电影,jizz在线免费观看http://www.aygfsteel.com/crazycoding/category/45547.htmlGod helps those who help themselves. zh-cnFri, 09 Jul 2010 13:04:31 GMTFri, 09 Jul 2010 13:04:31 GMT60MYSQL鈥斺擺Error Code : 1064]http://www.aygfsteel.com/crazycoding/archive/2010/07/09/325682.htmlYing-erYing-erFri, 09 Jul 2010 12:57:00 GMThttp://www.aygfsteel.com/crazycoding/archive/2010/07/09/325682.htmlhttp://www.aygfsteel.com/crazycoding/comments/325682.htmlhttp://www.aygfsteel.com/crazycoding/archive/2010/07/09/325682.html#Feedback0http://www.aygfsteel.com/crazycoding/comments/commentRss/325682.htmlhttp://www.aygfsteel.com/crazycoding/services/trackbacks/325682.html SqlServer錛?br />
delete from team where id in (select min(id) from team group by [name] having count(id) > 1)
MySql錛?br />

Error Code : 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[name] having count(id) > 1)' at line 1
(0 ms taken)

so錛?/p>

create temporary table tmp_wrap select * from users_groups group by uid having count(1>= 1;

truncate table users_groups;

insert into users_groups select * from tmp_wrap;

drop table tmp_wrap;

OR錛?br />
delete team as a from team as a,(select min(id) as id,`name` from team group by `name` having count(id) > 1as b where a.id=b.id and a.`name`=b.`name`




Ying-er 2010-07-09 20:57 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 乌拉特后旗| 汉中市| 新巴尔虎左旗| 富阳市| 涪陵区| 江津市| 方山县| 远安县| 九龙城区| 荔波县| 岢岚县| 诸暨市| 建宁县| 华宁县| 水城县| 安龙县| 衡南县| 濮阳县| 七台河市| 漳平市| 武强县| 广平县| 清水县| 临邑县| 西平县| 宁波市| 达日县| 德庆县| 温州市| 寻甸| 景德镇市| 惠东县| 阜康市| 六安市| 剑阁县| 治多县| 交口县| 沧源| 莎车县| 潞城市| 长岭县|