这样的SQL语句怎么写? select distinct * into temp from ttruncate table tinsert into t select * from tempdrop table temp 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 alter table 表名 add id int identity(1,1)godelete t from 表名 t inner join 表名 as kOn t.产品名称=k.产品名称 and t.id<k.idalter talbe 表名 drop column id 可不可以先select distinct into table1 from table把原来的table删除,再把table1改成table Frewin(Frewin) 我晕,我不能修改表结构 麻烦了点,用一条sql语句应该可以解决 select distinct 产品名称,价格,型号 from 表x select distinct * from t varchar转换datetime问题 ASP中怎么实现远程数据库备份,数据库为sql2000 请教:在服务器A的查询分析器里面访问服务器B的数据情况?? 两个表,表名不同,表结构完全相同,怎么样将表a中条件为where的所有行移入表B。 为了提高查询速度,这些字段都要建立索引吗?? 如何判断某一列(varchar)的值是不是全部由数字组成的? win7 home basic能安装什么版本的SQL 问个关于混合主键的问题 关于行变列的进一步提问 如何查询SQL SERVER中连接池的最大连接数 【【【【【【 简单的存储过程 请教高手~~~~】】】】】】 在数据库中某字段插入sql语句的问题!
go
delete t from 表名 t inner join 表名 as k
On t.产品名称=k.产品名称 and t.id<k.idalter talbe 表名 drop column id
把原来的table删除,
再把table1改成table