Solar_Sql_Adapter_Sqlite::update()

public int Solar_Sql_Adapter_Sqlite::update ( string $table , array $data , string|array $where )

Updates a table with specified data based on a WHERE clause.

Inherited from Solar_Sql_Adapter.

Parameters

  • (string) $table: The table to udpate.

  • (array) $data: An associative array where the key is the column name and the value is the value to use for that column.

  • (string|array) $where: The SQL WHERE clause to limit which rows are updated.

Returns

  • (int) The number of rows affected.

Description

Updates a table with specified data based on a WHERE clause.

Automatically applies quote() to the data values for you.



Local