SQL 截取字符

 

select SUBSTRING('123,abcdefg',charindex(',','123,abcdefg',0)+1,LEN('123,abcdefg')-charindex(',','123,abcdefg',0))select

 

select SUBSTRING('123,abcdefg',0,charindex(',','123,abcdefg',0))index

相關文章
相關標籤/搜索