Skip to content

Instantly share code, notes, and snippets.

@stevereich
Created October 14, 2012 23:28
Show Gist options
  • Save stevereich/3890147 to your computer and use it in GitHub Desktop.
Save stevereich/3890147 to your computer and use it in GitHub Desktop.
SQL Query ordering by character length.
SELECT
*
FROM
badwords
ORDER BY CHAR_LENGTH(strBadWord) DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment