请问 在如何在查询结果里加一个自动增长的列? select identity(int,1,1) as id,* into #tmp from [tab]select * from #tmp 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 alter table [tab] add id int identity(1,1)select * from [tab]---orselect identity(int,1,1) as id,a.* into #t from [tab] aselect * from #t 比较两表并去重 GRANT简单问题 sql 2000与sql 2005兼容的问题 关于UNION的菜鸟的问题 想用存储过程实现 table表里有一个日期字段date,要捞出表中当月的所有资料,sql该怎么写,请教~ 连接数据库语句问题!! [请教]:建表问题 SQL递归删除 怎么访问另一个数据库的存储过程 关于数据汇总的问题~~~ sql server2000亂碼問題
---orselect identity(int,1,1) as id,a.* into #t from [tab] aselect * from #t