Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Jamie Rumbelow 的 MY_Model 为我的模块开发模型。当我尝试在这些模块模型中使用关系时遇到了一些问题。我正在尝试学习如何使用它进行调试。我想查看 SQL 生成的字符串以查看作为查询运行的内容。有人知道怎么做这个吗。
尝试:
echo $this->db->last_query();
这将回显您的最后一个 SQL 查询。