Last active
December 27, 2015 12:59
-
-
Save devacto/7330256 to your computer and use it in GitHub Desktop.
Various useful MySQL string functions. (Original source: http://goo.gl/udse6R)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION strSplit(x varchar(255), delim varchar(12), pos int) returns varchar(255) | |
return replace(substring(substring_index(x, delim, pos), length(substring_index(x, delim, pos - 1)) + 1), delim, ''); |
Author
devacto
commented
Nov 6, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment