fetchSingle() 공개 메소드

Executes SQL query and fetch first column - shortcut for query() & fetchSingle().
public fetchSingle ( $args ) : string
리턴 string
예제 #1
0
 /**
  * It returns number of all rows in table.
  * @return int
  */
 public function selectNumOfAllRows()
 {
     return $this->connection->fetchSingle("SELECT COUNT(*) FROM `" . $this->table->getName() . "`");
 }