方法一 CREATE PROC D_t_Base_Employee @str varchar(100) as declare @sql varchar(1000) set @sql=‘DELETE Employee WHERE ID IN (‘[email protected]+‘)‘ exec (@sql) go 方法二 CREATE PROC D_t_Base_Employee @str varchar(100) as DELETE Employee WHERE CHARINDEX(‘,‘+CAST(id as varchar)+‘,‘,‘,‘[email protected]+‘,‘)>0 go