Basic
suggest changeORDER BY x
x can be any datatype.
- For
ASC(the default),NULLs precede non-NULLs. ForDESC,NULLs come last. - The default is
ASC(lowest to highest). - Strings (
VARCHARand so on) are ordered according to the column’s collation. ENUMvalues are ordered by the declaration order of their strings, not alphabetically.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents