标签:select table order 表名 order by sign esc sql SQ
sql升序会也可以把null或0,放在后面
SELECT 字段, 字段 FROM 表名 WHERE 字段 = xx ORDER BY signtime ! = 0 desc, signtime
in会打乱排序,可以这样写:
select * from table where id IN (3,9,6) order by field(id,3,9,6);
标签:select table order 表名 order by sign esc sql SQ
原文地址:https://www.cnblogs.com/zhangxiangdong/p/9160449.html