db\Command bindValues()

bindValues() public method

Binds a list of values to the corresponding parameters.

This is similar to bindValue() except that it binds multiple values at a time. Note that the SQL data type of each value is determined by its PHP type.

public $this bindValues ( $values )
$values array

The values to be bound. This must be given in terms of an associative array with array keys being the parameter names, and array values the corresponding parameter values, e.g. [':name' => 'John', ':age' => 25]. By default, the PDO type of each value is determined by its PHP type. You may explicitly specify the PDO type by using an array: [value, type], e.g. [':name' => 'John', ':profile' => [$profile, \PDO::PARAM_LOB]].

return $this

The current command being executed

doc_Yii
2016-10-30 16:57:22
Comments
Leave a Comment

Please login to continue.