Created
September 8, 2015 04:55
-
-
Save vansosnin/fa91dc57e32e42d9ffdb to your computer and use it in GitHub Desktop.
Sort by price products sorted by img.
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 prod ORDER BY IF(img,1,0) DESC, price DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment