可以按多行订购吗?
我希望我的用户按last_activity进行排序,但与此同时,我希望带有图片的用户出现在没有图片的用户之前
像这样:
SELECT some_cols FROM `prefix_users` WHERE (some conditions) ORDER BY last_activity, pic_set DESC;
SELECT some_cols FROM prefix_users WHERE (some conditions) ORDER BY pic_set DESC, last_activity;