SQL server cannot use MySQL split_index function, and my environment face accessibility blocking to use some function on server like "CREATE" "INSERT"
Are there any method to split strings by fixed delimiter into columns ?
Has 3 delimiters but length is dynamic.
e.g.
STRING : sometimes - "AA.0.HJ"
, sometimes - "AABBCC.099.0"
,sometimes - "0.91.JAH21"
The combinations of substring is not work.
SUBSTRING(STRING ,
CHARINDEX('.', STRING )+1,
LEN(STRING )-CHARINDEX('.', STRING )
Origin:
STRING
AA.0.HJ
AABBCC.099.0
0.91.JAH21
Target :
STRING First Second Third
AA.0.HJ AA 0 HJ
AABBCC.099.0 AABBCC 099 0
0.91.JAH21 0 91 JAH21
What is the solution in this situation ?