set @str='WX15-53-H-53-99-15-335-23'; select @str as '字符串' select len(@str) as '字符长度' select charindex('-',@str,1) as '第一个逗号的索引值' select LEFT(@str,charindex('-',@str,1)-1) as '第一个值' select SUBSTRING(@str,charindex('-',@str,1)+1,len(@str)) as '从第一逗号开始…