将table1中id 为2的记录置顶select * from table1order by case when id='2' then 0 else 1 end 例子:将已发布的置顶,status 0:未发布 1:已发布 2:已下架 select ID,NO_DEMAND,NAME_UNIT,WEIGHT_PLAN,TIME_ENABLE,TIME_CREATE,CREATER,COMMENT ,' then '下架' end as STATUS ,' then '已确认不接收' end a…