Hi All,
I wonder if someone can help me. I'm a bit of a noob when it comes to SQL server programming.
I'm looking to explode a string by a particular value using an SQL function, e.g.
'aaa/bbb/cccc/ddddd/ee'
Say for example i want to pick out element 4 of this string and return just 'dddd'
It is also possible for these strings to have different amounts of elements and some elements missing. e.g.
'aaa//cccc/ddddd/ee'
'aaa/bbb/cccc'
Is there a way in SQL of exploding these string and producing a variable for each element?
Cheers,
Jonathan.
I wonder if someone can help me. I'm a bit of a noob when it comes to SQL server programming.
I'm looking to explode a string by a particular value using an SQL function, e.g.
'aaa/bbb/cccc/ddddd/ee'
Say for example i want to pick out element 4 of this string and return just 'dddd'
It is also possible for these strings to have different amounts of elements and some elements missing. e.g.
'aaa//cccc/ddddd/ee'
'aaa/bbb/cccc'
Is there a way in SQL of exploding these string and producing a variable for each element?
Cheers,
Jonathan.