MySQL FIND_IN_SET

I always forget this mySQL function, so I figured I should make note of it somewhere. It’s called FIND_IN_SET. You specify a variable and a list of possible matches and it returns the position of the string in the list. It’s very helpful for sorting things in a defined list provided by the client.

Tags:

Comments are closed.