方法一 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
原文地址:https://www.cnblogs.com/weifeng123/p/8192242.html
时间: 2024-10-13 10:57:10