db\Query createCommand()

createCommand() public method

Creates a DB command that can be used to execute this query.

public yii\db\Command createCommand ( $db = null )
$db yii\db\Connection

The database connection used to generate the SQL statement. If this parameter is not given, the db application component will be used.

return yii\db\Command

The created DB command instance.

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

Please login to continue.