摘要:
1 DECLARE @list VARCHAR(100), @cnt INT, @idxStart INT, @idxEnd INT 2 DECLARE @sites TABLE(id INT) 3 4 SET @list = '23, 34, 44, 56, 78'; 5 --SET @list = '23'; 6 7 SET @list = replace(@list, ' ', '') 8 9 IF(RIGHT(@list, 1)<>',')10 SET @list = @list + ' 阅读全文