0
如何在codeigniter中编写以下MySQL查询。我测试了查询并按预期工作。 select p.post_title, count(d._id) from posts p INNER JOIN discussions d ON p._id = d.post_id INNER JOIN accounts a ON a._id = p.account_id where a._id = '1494900911hRs5kjPXV9591a60afa434f' group by p._id
如何在Codeigniter查询中编写连接选择查询
只需使用'$这个 - > DB->查询(“您所查询的HERE “)'。来自[docs](https://www.codeigniter.com/user_guide/database/queries.html)。 – Tpojka