Exemple #1
0
 /**
  * Returns the ID of the last inserted row, or the last value from a sequence object,
  * depending on the underlying driver.
  *
  * Note: This method may not return a meaningful or consistent result across different drivers,
  * because the underlying database may not even support the notion of auto-increment fields or sequences.
  *
  * @param string $table     Name of the table into which a new row was inserted.
  * @param string $field     Name of the field into which a new row was inserted.
  */
 public function lastInsertId($seqName = null)
 {
     $this->connect();
     return $this->_conn->lastInsertId($seqName);
 }