请问在SQL Server中怎样在select 语句中加一列唯一标识。 假如用@@identity不行的话,你可以自己添加好了,从1开始,一条一条加上一个显示就行了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select identity(int,1,1) ,username into #tempfrom usersselect * from #tempdrop table #temp select IDENTITY(int,1,1) AS ID,UserName into #temp from users select * from #tempdrop table #temp 求助!无法删除jobs 这条注入语句怎么写? 求大虾来帮帮忙 一个小问题 多表关联数据?请大虾指点一下。谢谢 sp_renamedb执行问题 一个很基础的查询时的别名问题,求老鸟帮忙了! 求sql语句? 临时表用法 SQL 2005 连接问题 急救信号:SQL构建 我从sqlserver客户端连接方式转成ODBC连接方式后遇到了很多意想不到的问题! 日期格式转换
into #temp
from usersselect * from #tempdrop table #temp
select * from #temp
drop table #temp