然后查询的时候 order by (category='西装') desc,category 即可实现要求.
select * from (select * from tablename where A='01' order by B asc) a
union all
select * from (select * from tablename where A='02' order by B desc) a
SELECT name FROM `user` ORDER BY CONVERT( name USING gbk ) ASC欢迎分享,转载请注明来源:内存溢出
评论列表(0条)