I'm using Jamie Rumbelow's MY_Model to develop model's for my modules. I'm running into some issues when I'm trying to use relationships within those module model's. I'm trying to learn how to debug with this. I would like to view the SQL generated string to see what is being ran as the query. Does anybody know how to do this.
1条回答 默认 最新
dq13733519262 2013-08-09 21:56关注Try:
echo $this->db->last_query();This will echo your last SQL query.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报