Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Find position of a character in a string - response (9) by CarlosAL

$
0
0

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.
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>