thinkphp5自定义sql排序
摘要:
先列下目标sql语句 SELECT * FROM `table` WHERE `id` IN (423603,423605,423606) ORDER BY FIELD(`id`, 423603,423606,423605) where id in (1,2,3) 这个条件按以下代码写即可 $que 阅读全文
posted @ 2020-09-12 16:58 aozima 阅读(451) 评论(0) 推荐(0) 编辑