如有一个表News(
id int not null auto_increment,
top int,
char title(20),
primary key(id)
)
这里top表示置顶,如何用一条语句查询,置顶的(top=1表示置顶)放在最上面,再查其他的,按id降序排列
id int not null auto_increment,
top int,
char title(20),
primary key(id)
)
这里top表示置顶,如何用一条语句查询,置顶的(top=1表示置顶)放在最上面,再查其他的,按id降序排列
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货