954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Splitting a sql column

I have a column in my database that has a list of keywords. sometimes the keywords are a couple of words and sometimes just one. Each keyword (can be more than one word) is separated from a comma. for example - this is my column -
hi, how are you, good, come now, why
I want to fill each textbox with a different one of these words of phrases (hi in one box, how are you in another)

readbanana
Newbie Poster
9 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

you want to split those keywords and place each keyword in individual columns. Is this the exact problem.

Kumar203
Newbie Poster
2 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

Hi,

In this thread I gave a solution on how to split strings into parts although it was for Oracle this statement also works on SQL Server and Sybase databases without changes.

But I am afraid, you will need a more sophisticate solution because the number of tags within a string you want to separate seems to vary.

-- tesu

tesuji
Master Poster
721 posts since Apr 2008
Reputation Points: 158
Solved Threads: 98
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: