[코드이그나이터] 쿼리 헬퍼 메소드
쿼리 헬퍼 메소드 출처: http://ci4doc.cikorea.net/database/helpers.html $db->insertID() 데이터베이스 삽입을 수행할 때 삽입 ID 번호 $db->affectedRows() "쓰기" 유형 쿼리를 수행할 때 영향을 받는 행의 갯수를 표시(insert, update, etc.). $db->getLastQuery() 마지막으로 실행 된 쿼리(결과가 아닌 쿼리 문자열)를 나타내는 Query 개체를 반환 $db->countAll() 특정 테이블 행의 수를 확인 echo $db->table('my_table')->countAll(); // Produces an integer, like 25