November 27, 2014 at 11:35 pm
dear all,
How can i split the following string in sql server and display it in different columns?
a + b + c + d
expected op is
field1 field2 field3 field4
a b c d
thanks
peter
November 28, 2014 at 12:01 am
check below article
November 28, 2014 at 4:05 am
Is the string always consistent, if so you can use substring. i.e SELECT SUBSTRING('HELLO WORLD',4,5)
Result 'LO WO'
--------------------------------------------
Laughing in the face of contention...
November 28, 2014 at 9:10 am
yes it is consistent...
i tried substring its not giving the expected out in differnt columns..
November 28, 2014 at 9:23 am
can you post your code and some dummy values
--------------------------------------------
Laughing in the face of contention...
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply