select语句如何按不同限定条件读取数据?

来源:百度知道 编辑:UC知道 时间:2024/06/19 21:59:51
我的数据库(mysql)中表“news”有一个字段“hot",'0"代表普通新闻,'1'代表热点新闻
请问读取时怎样写一个select语句才能先读取热点新闻(1)再读取普通新闻(0)
谢谢

//一个是先排序
select hot
from news
order by hot

//也可以用联合的方法
select hot
from news
where hot = 1

union all

select hot
from news
where hot = 0

select * from news order by hot desc
按hot字段倒序排列,是这个意思吗?