急啊,在线等,请大家帮帮我! SELECT IDENTITY(int, 1,1) AS XUHAO,DDD as AAA,EEE as BBB,FFF as CCCINTO TEST1FROM TEST 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select identity(int,1,1) as xuhao,ddd,eee,fff into #temp from test order by fffinsert into test1 select * from #temp select Identity(int,1,1) as xuhao,ddd,eee,fff into #temptable from test 使用臨時表然後在用inser into test1 (aaa,bbb,ccc) select xuhao,ddd,eee,fff from #temp insert test1 select (select count(*) from test where fff <= A.fff), ddd, eee, fff from test as A insert test1(xuhao,aaa,bbb,ccc)select xuhao=1+isnull((select count(*) from test where fff<a.fff),0),ddd,eee,ffffrom test a 如果是用UPDATE 语句更新表中的序号,该怎么写呢?谢谢! 多字段索引问题 求一条SQL语句,高手救救(对不起,最近问得多,分数不足了!) 求个SQL查询语句,谢谢 我怎么创建一个登录帐户,让该用户只能不能看见存储过程,只能运行某一个存储过程. 一个SQL菜鸟求一条代码~ 关于一个复合查询条件的问题 sa的密码是不是要在安装时指定? [建议]关于提问 请教一SQL语句。 插入及修改触发器OK,删除触发器不行,请指点? 有一个关于数据库连接不上的问题请教(CDataSource类的使用)(UP有分~!!!): 问一个基础的问题
insert into test1
select * from #temp
from test 使用臨時表然後在用inser into test1 (aaa,bbb,ccc) select xuhao,ddd,eee,fff from #temp
select (select count(*) from test where fff <= A.fff),
ddd, eee, fff from test as A
select xuhao=1+isnull((select count(*) from test where fff<a.fff),0),ddd,eee,fff
from test a