正文 mysql按某列的不同值来排序 高亚轩 V管理员 /2019年 /0 评论 /5707 阅读 0320 此篇文章发布距今已超过1202天,您需要注意文章的内容或图片是否可用! ORDER BY( case when columnName='A' then 1 when columnName='B' then 2 END) limit 0,100 //columnName的值先按A排序,再按B排序,一共取100条数据 转载请注明出处 -- 展开阅读全文 --
还没有评论,来说两句吧...