Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 nth Occurrence of character

Author  Topic 

kindschuha
Starting Member

1 Post

Posted - 2007-03-06 : 16:54:10
I have a field that contains data like "mary;john;dog;cat;frog" I want to query the field for the values between each of the semi colins. I was going to use Substring with a patIndex but I can only patIndex the first semi colin and not the 2nd 3rd.... I was wondering if someone could tell me the right was of doing this or point me in the right direction.

Thank you,

snSQL
Master Smack Fu Yak Hacker

1837 Posts

Posted - 2007-03-06 : 17:02:45
See http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=50648
Go to Top of Page
   

- Advertisement -