27,580
社区成员
发帖
与我相关
我的任务
分享
declare @table table
(
学号 int identity(1,1),
姓名 varchar(10) not null,
住址 varchar(10) not null
)
insert into @table
select '王刚','武汉'
union all select '刘明','上海'
union all select '王红','北京'
delete from @table where 学号=2
select ROW_NUMBER() over(order by 学号) as 学号,姓名,住址 from @table