Inserts a row into a table.
public insert ( string $sql, array | string $arg1 = null, string $arg2 = null, string $pk = null, integer $idValue = null, string $sequenceName = null ) : integer | ||
$sql | string | SQL statement. |
$arg1 | array | string | Either an array of bound parameters or a query name. |
$arg2 | string | If $arg1 contains bound parameters, the query name. |
$pk | string | The primary key column. |
$idValue | integer | The primary key value. This parameter is required if the primary key is inserted manually. |
$sequenceName | string | The sequence name. |
return | integer | Last inserted ID. |