标签:
select SUBSTRING(‘123,abcdefg‘,charindex(‘,‘,‘123,abcdefg‘,0)+1,LEN(‘123,abcdefg‘)-charindex(‘,‘,‘123,abcdefg‘,0))
select SUBSTRING(‘123,abcdefg‘,0,charindex(‘,‘,‘123,abcdefg‘,0))
SQL 截取字符
原文地址:http://www.cnblogs.com/kunEssay/p/5726672.html