日期:2014-05-17 浏览次数:20490 次
DECLARE @i VARCHAR(20) SET @i = '[1,2,3,4]' SELECT SUBSTRING(@i,LEN(@i)-1,1)
DECLARE @s VARCHAR(20) SET @s = '[1,2,3,2344]' select replace(right(@s,patindex('%,%',reverse(@s))-1),']','')