批量删除一些数据的一个存储过程
一种方式:
create proc deletesomerecs (@ids varchar(8000))
as
exec('delete from inmodify where inmid in ('+@ids+')')
另一种方式:
create proc deletesomerecs (@ids varchar(8000))
as
delete from inmodify where charindex(','+ltrim(inmid)+',', ','+@ids+',')>0