Is there basename() equivalent in MySQL?
Jul 23, 2017 · 1 min read
Found on stackoverflow.com
You can use the SUBSTRING_INDEX function to get the last element after a specific delimiter, in this case a slash. This can also be used with a backslash, simply use "\\" in that case.
Originally published at search hacker.
