这个结果怎么实现? alter table tablename add id int identity(1,1)select * from tablename order by idalter table drop cloumn id 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select identity(int,1,1) as col0,col1,col2 into #T from 表select * from #t 有点错。alter table tablename add id int identity(1,1)select * from tablename order by idalter table tablename drop column id 如何得知是谁更新了这条记录 关于 Sql server2000 事务机制中的问题 如何根据某列的值排序 请问如何删除一个表中完全相同的记录? 表的快速赋值(不知道是不是这样叫) 在不知到数据库备份文件是哪个库的情况下如何将其还原为数据库文件,谢谢!! 查询时直接去除结果集里的重复。 一个简单的SQL排序问题 在一个表中要查询字段值相同的所有记录 怎么在win98下安装oracle8.05? 求一条sql语句 dts 从文本导入数据,可以把文件名做变量么
select * from #t
alter table tablename add id int identity(1,1)
select * from tablename order by id
alter table tablename drop column id