mysql ORDER BY field(STATUS, 0,1) 根据字段特定排序问题

当数据库中存在,不在排序字段中的值时,数据会排在最前面

列如:

 

posted @ 2020-12-08 15:30  pengcx  阅读(511)  评论(0编辑  收藏  举报