当你的才华不能撑起你的野心时,就是你该选择学习的时候了!

SQL SERVER 字符串分割用substring

 

declare @InpS nvarchar(max)='ACP,LeasingIndividualUsedCarNonCertified'
select @InpS,len(@InpS),charindex(',',@InpS),substring(@InpS,charindex(',',@InpS)+1,len(@InpS))

 

posted @ 2023-11-29 16:18  hofmann  阅读(49)  评论(0)    收藏  举报