Skip to content

Instantly share code, notes, and snippets.

@nuriye
Created April 8, 2019 11:04
Show Gist options
  • Save nuriye/5e14188b6d964e944d38519d9eb759ca to your computer and use it in GitHub Desktop.
Save nuriye/5e14188b6d964e944d38519d9eb759ca to your computer and use it in GitHub Desktop.
Order by Length SQL
SELECT *, LENGTH(option_value) AS Laenge FROM `wp_options` ORDER BY Laenge DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment