I want to use a list of values for a field as the basis for a query (so far, so good - that's "WHERE col IN (comma-delimited list)"), but I want to get the results in the same order as the list of values. Is there a way?
Wow, that was a quick response! I just looked those functions up in the MySQL docs and they are both listed as string functions. In my case, though, the field is numeric rather than string (the auto-incremented primary index of a table) - can I still use one of those methods?
Thanks! I haven't had time to implement it yet, but I'm sure it will be fine. Before posting I tried to search for the answer myself, but "where in order by" isn't very specific, and those are the only relevent words I knew.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.