declare @str varchar(50)
set @str='-'+'1-9-3-2'--前面加个'-'防止没有'-'出错
select REVERSE(SUBSTRING(REVERSE(@str),1,CHARINDEX('-',REVERSE(@str))-1))