buildInCondition() public method
Creates an SQL expressions with the IN
operator.
public string buildInCondition ( $indexes, $operator, $operands, &$params ) | ||
---|---|---|
$indexes | yii\sphinx\IndexSchema[] |
List of indexes, which affected by query |
$operator | string |
The operator to use (e.g. |
$operands | array |
The first operand is the column name. If it is an array a composite IN condition will be generated. The second operand is an array of values that column value should be among. If it is an empty array the generated expression will be a |
$params | array |
The binding parameters to be populated |
return | string |
The generated SQL expression |
throws | yii\db\Exception |
if wrong number of operands have been given. |
Please login to continue.