mixed pq\Gateway\Table::update(array $where, array $data[, string $returning = "*"])

Update rows in the table. See pq\Query\Expr for using SQL constructs as parameters or arguments.

Params:

Returns:

Example:


<?php

use pq\Gateway\Table;
use 
pq\Query\Expr;

$table = new Table("data");
$table->update(["id=" => 1], [
    
"foo" => "bar"
    
"ts" => new Expr("NOW()"
]);

?>