发布网友 发布时间:2024-10-24 02:41
共2个回答
热心网友 时间:2024-10-31 06:00
改成动态SQL语句
declare @userid varchar(8000);
set @userid='1,2,3,4';
EXEC ('delete table where id in('+@userid+')')
热心网友 时间:2024-10-31 05:59
declare @userid nvarchar(50);
set @userid='1,2,3,4';
delete table where id in(@userid)