Query\QueryBuilder::update
Creates an update clause, and executes it
Signature
public function update(string
$table,
[array
$data = ] )
Parameters
$table
—
string
$data
—
array
Returns
- PDOStatement
Defined by Interface
QueryBuilderInterface
Test Coverage
Information
- Coverage: 2/2 Lines (100%)
- Tests: 12
- Passed: 12 (100%)
Tests
- [ PASSED ] — MySQLQBTest::testUpdate
- [ PASSED ] — MySQLQBTest::testSetArrayUpdate
- [ PASSED ] — MySQLQBTest::testWhereSetUpdate
- [ PASSED ] — PgSQLQBTest::testUpdate
- [ PASSED ] — PgSQLQBTest::testSetArrayUpdate
- [ PASSED ] — PgSQLQBTest::testWhereSetUpdate
- [ PASSED ] — SQLiteQBTest::testUpdate
- [ PASSED ] — SQLiteQBTest::testSetArrayUpdate
- [ PASSED ] — SQLiteQBTest::testWhereSetUpdate
- [ PASSED ] — FirebirdQBTest::testUpdate
- [ PASSED ] — FirebirdQBTest::testSetArrayUpdate
- [ PASSED ] — FirebirdQBTest::testWhereSetUpdate