问一个SQL的问题 select identity(0,1) as a , * into #temp from your_table where your_conditionselect * from #temp --your resultdrop table #tempgo 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select (select count(主键) from tablename where 主键 < A.主键 ) as rownum, * from tablename as A order by 主键 select IDENTITY(int,0,1) as 'id', * into temptable from tablename .net 发送邮件(利用ajax--js) 求一高效率的SQL,统计用的 如何在已有数据的表上增加新字段? 100分求一个存储过程!在线= 为什么远程连接不上sql server服务器,需要设置哪些内容? 下面这个表如何设计??谢谢各位啦! 前一个问题已经解决,但是还有点小尾巴,请教各位 分?不是问题! 如何让查询结果带编号排列 复杂sql,哪个大神能分析解读下? 怎样可以不记录重复的数据??? 两个数据库之间的表象户查询
* from tablename as A
order by 主键