28,390
社区成员
发帖
与我相关
我的任务
分享
create procedure manu_del @id int
as
delete from 刊物信息表 where ID=@id
select id=identity(int,1,1),name,vol,exp,pages,price... into a from 刊物信息表
truncate table 刊物信息表
set identity_insert 刊物信息表 on
insert into 刊物信息表(id,name,vol,exp,pages,price....) select * from a
set identity insert 刊物信息表 off
drop table a
go