Use the static delete
method to create a DELETE
statement builder.
use WTFramework\SQL\SQL;
$stmt = SQL::delete();
See Select documentation.
Use the using
method to set the table names to use.
$stmt->using('t1');
$stmt->using(['t1', 't2']);
As table names are not automatically escaped you may use an alias.
$stmt->using('t1 AS t2');
If an array of table names is passed then any string key will be used as the alias.
$stmt->using(['t2' => 't1']);
A Table
service class can also be passed, providing a fluent interface for generating table names.
$stmt->using(SQL::table('t1'));
See Update documentation.
See Select documentation.
See Select documentation.
See Select documentation.
See Select documentation.
See Select documentation.
See Select documentation.
See Insert documentation.
$stmt->lowPriority();
$stmt->quick();
$stmt->ignore();
$stmt->history();
$stmt->forPortionOf($period, $from, $to);
$stmt->beforeSystemTime($time);
$stmt->whereCurrentOf($cursor);
See Select documentation.
See Select documentation.
See Select documentation.
See Select documentation.
See Select documentation.