怎样用select 返回结果集中自动加上记录序号。 select id=identity(int,1,1),* into newtable from table select * from newtable 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用楼上的方法,不过换成临时表比较好点:select id=identity(int,1,1),* into #t from table select * from #tdrop table #t 这样效率不是很差吗?有没有直接得到,因为我要用结果集显示在cxGrid上 select id=identity(int,1,1),* into newtable from table select * from newtable 游标问题 下班结帖!(2010-12-22) 关于数据库问题 数据库同步问题 刚刚入道的弟弟,请教问题 为什么sql server个人版安装不到win2K呀? 昨天我不小心进行了误更新操作,把表中所有数据都变成重复的了,忘了备份,求高手帮忙!急!!!!!! 请教大虾们,下班前给我写条SQL!!!! 我安装的SQL SERVER 2000服务器为什么经常会自动停止,在线等。 会oci的大虾请进:我的OCIStmtExecute()有个毛病 请大家指点 Trigger可以发送事件(event)给另外一个可执行程序吗? 求SQL语句2
select id=identity(int,1,1),* into #t from table
select * from #tdrop table #t
有没有直接得到,因为我要用结果集显示在cxGrid上
select * from newtable