Query\QueryBuilder::delete
Deletes data from a table
Signature
public function delete(string
$table,
[string
$where = ''] )
Parameters
$table
—
string
$where
—
string
Returns
- PDOStatement
Defined by Interface
QueryBuilderInterface
Test Coverage
Information
- Coverage: 2/2 Lines (100%)
- Tests: 8
- Passed: 8 (100%)
Tests
- [ PASSED ] — MySQLQBTest::testDelete
- [ PASSED ] — MySQLQBTest::testDeleteWithMultipleWhereValues
- [ PASSED ] — PgSQLQBTest::testDelete
- [ PASSED ] — PgSQLQBTest::testDeleteWithMultipleWhereValues
- [ PASSED ] — SQLiteQBTest::testDelete
- [ PASSED ] — SQLiteQBTest::testDeleteWithMultipleWhereValues
- [ PASSED ] — FirebirdQBTest::testDelete
- [ PASSED ] — FirebirdQBTest::testDeleteWithMultipleWhereValues