Dieter:
Agreed, but I was only giving another choice to the OP. I don't know the requirements and varchar sizes, and some people find it hard to deal with recursives...
The OP wanted "find out the 4th '_'" and I only showed how to do it with only one string for didactical purposes ("don't give a fish, show how to fish...")
Anyway, the long-waited 'native' strtok() is, imho, the best solution, of course.
Cheers.
Carlos.
Dieter:
Agreed, but I was only giving another choice to the OP. I don't know the requirements and varchar sizes, and some people find it hard to deal with recursives...
The OP wanted "find out the 4th '_'" and I only showed how to do it with only one string for didactical purposes ("don't give a fish, show how to fish...")
Anyway, the long-waited 'native' strtok() is, imho, the best solution, of course.
Cheers.
Carlos.