Archive for July, 2008

MySQL FIND_IN_SET

Thursday, July 31st, 2008

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.