两个字符串,以特定符号分隔(例如‘,’号),求交集 第一种情况: declare @m varchar(100),@n varchar(100)select @m=',2,3,5,7,8,9,10,', @n=',1,3,6,8,10,'select --count(1) result=substring(@m,number,charindex(',',@m,number)-number)from master..spt_valueswhere number<len(@m) and type='…