Previous Page
setProfiling()

Solar_Sql_Adapter_Sqlite
update()

Next Class
Solar_Sql_Adapter_Sqlite2

update()

public int 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 Solar_Sql::quote() to the data values for you.