求SQL查询语句。 select id=identity(int,1,1),* into #t from 表1select * form #t 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 alter table 表1 add id int identity(1,1)select id,字段1,字段2from 表1alter table 表1 drop column id select id=(case when 字段2='a1' then 1 when 字段2='b1' then 2 else 3 end),* from 表 TO Softlee81307(孔腎):要是有100条记录,我不是写死了?大家帮忙想啊! select id=identity(int,1,1),* from 表1 TO:lengxiaowei(小伟)我试了一下,提示只有INTO子句中,才能用identity函数。难道真的没在办法吗? select id=identity(int,1,1),* into #t from 表1select * form #t select id=identity(int),* into #t from 表1select * form #t用不着改表结构的嘛 select id=identity(int,1,1),* into #t from 表1 order by 字段2select * form #t 请教 SQL 问题 ! SQL行列互换 SQL-Server 数据库查看工具 叫什么名字?是不是在微软网站下载? 一个区分字母大小的问题? 请问大家一个触发器中更新语句的问题 Access 中 order by cdate(0) desc 是什么作用? 主 题: 关键字:网络版、SQL SERVER 安装、恢复、注意事项、有益的经验、失败的教训 请教一个权限设定的问题 关于使用sqlserver开发三层结构的产品购买问题,高分求教 关于SQL处理导入导出操作中处理excel中某些列为时间格式的疑问 比较复杂的sql统计 求一删除的触发器?
select id,字段1,字段2
from 表1
alter table 表1 drop column id
when 字段2='b1' then 2
else 3 end),* from 表
大家帮忙想啊!
我试了一下,提示只有INTO子句中,才能用identity函数。难道真的没在办法吗?
select * form #t
select * form #t
用不着改表结构的嘛