【发布时间】:2023-03-24 16:06:01
【问题描述】:
大家好,我在 mysql 中有这个原始查询,我需要翻译成 laravel 5.4 查询生成器
select * from pages where (phase_id, type) in (select max(phase_id),type from pages where phase_id<=2 and actived=1 group by type) and actived=1
我不知道如何在查询生成器中转换 clausule 与 2 列
有什么想法吗?
谢谢大家
【问题讨论】:
标签: php mysql laravel laravel-5.4