SELECT '1234564/23', RIGHT ( RTRIM(LTRIM('1234564/23')), len(RTRIM(LTRIM('1234564/23'))) + 1 - CHARINDEX( '/', RTRIM(LTRIM('1234564/23')) ) ), left ( RTRIM(LTRIM('1234564/23')), CHARINDEX( '/', RTRIM(LTRIM('1234564/23')) )-1 ), len(RTRIM(LTRIM('1234564/23'))), CHARINDEX( '/', RTRIM(LTRIM('1234564/23')) );
,如果目标字符串没有/,则left是有问题的