求SQL語句一條 select identity(int,1,1) id,* into #tmp from 表select * from #tmpdrop table #tmp 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Rotaxe(程序员): 能不能不用臨時表? alter table 表 add id identity(int,1,1)select * from 表alter table 表 drop column id select (select sum(1) from tablename a where a.col1<=b.col1),* from tablename b alter table 表 add id identity(int,1,1)select * from 表alter table 表 drop column id wzh1215(四脚蛇)﹕ 大哥你的方法好像更激進了 数据查询的问题 请教一个简单问题 语句怎么写 简单问题,好久没来了,送分ing!!! 一个错误,请大家指点! 如何还原备份文件? 求bcp 向存储过程传包含汉字的xml串,sql分析时提示“分析错误:文本内容中发现无效字符” 如何将某一字段的前几名查询出来? 一个主考官问的一个小问题? 来抢分吧,关于Sql语句中的Join问题 如何使用ASP程序连接远程SQL数据库?
能不能不用臨時表?
select * from 表
alter table 表 drop column id
select * from 表
alter table 表 drop column id
大哥你的方法好像更激進了