db\Migration delete()

delete() public method

Creates and executes a DELETE SQL statement.

public void delete ( $table, $condition = '', $params = [] )
$table string

The table where the data will be deleted from.

$condition array|string

The conditions that will be put in the WHERE part. Please refer to yii\db\Query::where() on how to specify conditions.

$params array

The parameters to be bound to the query.

doc_Yii
2016-10-30 16:58:09
Comments
Leave a Comment

Please login to continue.