在T-SQL中拆分字符串

agn*_*zka 1 t-sql string

如何"text."从字符串中获取字符串"This is my text."

Raj*_*sh 7

SELECT SUBSTRING('This is my text.',CHARINDEX('text.','This is my text.'),5)

Right()如果text.将在字符串的中间将失败.


KM.*_*KM. 6

SELECT RIGHT('This is my text.',5)