Created
May 11, 2015 12:31
-
-
Save shivenigma/566a306ed6e05f4dd8bf to your computer and use it in GitHub Desktop.
when ordering using mysql, bringing specific values to the top of the list like country dropdown us at the top
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM stores ORDER BY country = "us" DESC, storeId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment