sql语法出错,请求帮助 delete contentwhere id in (select id from content group by id having count(*) > 1) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 语法上没错。逻辑上错了。你现在此字段不是自增的,准备删除之后改成自增的,对吗?select nid=identity(int,1,1),* into #t from contenttruncate table content --运行前最好备份一次。insert content select 除nid字段外的全部字段from #t a where nid in (select max(nid) from #t group by id)drop table #t sql自动增长可以加字母不 这函数怎么写 求个简单的sql语句 关于数据恢复问题!! 简单的触发器问题 请高手帮忙 SQL SERVER 错误945求解 急急急 两个数据库里相同表的覆盖问题,请帮忙。 如何将sql server数据导出为sql语句 关于与sql server2000数据库连接的问题 用ADO跟新数据库时,一遇到时间字段就出错?? sqlsever联机丛书为什么不能用? 写sql 语句时把select 后面的东西用group by分组一下有什么用吗?
语法上没错。逻辑上错了。你现在此字段不是自增的,准备删除之后改成自增的,对吗?select nid=identity(int,1,1),* into #t from contenttruncate table content --运行前最好备份一次。insert content
select 除nid字段外的全部字段
from #t a
where nid in (select max(nid) from #t group by id)drop table #t