CodeIgniterでSQLを確認する方法2つ実行後のSQLを確認 $this->db->last_query(); クエリビルダーで作られたSQLを確認 $this->db->get_compiled_select();