SELECT * FROM Test ORDER BY
ORDER BY条件有两个,
1,字段sta 等于1 (bit型0,1) 的排在前面
2,然后按字段publishtime(datetime) 降序排列
------解决方案--------------------
--两个都降序排列
select *
from test
order by sta desc,publishtime desc
SELECT * FROM Test ORDER BY
--两个都降序排列
select *
from test
order by sta desc,publishtime desc