如何将重复的记录压缩唯一的一条记录? select distinct * into #tempa from table delete tableinsert into table select * from #tempa不过这种办法对text,image这种字段无效 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Select distinct TheColumn From TableName select distinct * into temp from yourtable drop table yourtablesp_rename 'temp','yourtable' select distinct * into temp from yourtable drop table yourtablesp_rename 'temp','yourtable' 求教:row_number() 转换为CHAR字符,如1转化成0001 这个查询能否用一句sql实现? 对象名 'deteled' 无效。 问个问题!~高手帮帮忙啊 SQL按照不同类别随机选择若干行数据 在存贮过程中怎么样用变量存放select语句,然后执行它返回一个游标 数据恢复,请教各位? 有个问题 在数据量大的情况下用sql server还是oracle? 请教如何用触发器限定特定的SP过程才能修改数据? 菜鸟的触发器问题 很简单,很简单,很简单的问题
drop table yourtable
sp_rename 'temp','yourtable'
drop table yourtable
sp_rename 'temp','yourtable'