求一条SQL语句,谢谢帮忙! select distinct id,name into #temp from 表名drop table 表名select * into 表名 from #tempdrop table #temp麻烦了些。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select distinct * into #t from yourtablegodelete yourtablegoinsert yourtable select * from #tgo select distinct * into #temp form yourtabletruncate table yourtableinsert into yourtable select * from #tempdrop table #temp select distinct id,name into #temp from table_name declare mycursor cursor for select id from @table 错误 求一数据库设计 前5楼散分!! sql2008能存多大的xml文档 函数中newid()使用不正确,大家来看下 这个问题要是能解决!!你呀,了不起!!!(在线等待,急!) 这样的两表联合查询T-SQL语句怎么写 一个奇怪的问题(sqlserver) 请教sql语句 有没人用VFP做过C/S结构的软件?请谈谈心得? 我的sql2000的查询分析器为什么不能调试? 求救:SQL Server 2000在运行SQL Server Agent时,提示登录失败,无法启动服务
go
delete yourtable
go
insert yourtable select * from #t
go
truncate table yourtable
insert into yourtable select * from #temp
drop table #temp