篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql db query db_select条件相关的知识,希望对你有一定的参考价值。
CONDITIONS
/**********************************************************************/
->condition($field, $value = NULL,$operator = NULL)
$field The field to check or the result of a logic operation (or, and, xor)
$value The value to test against.
$operator Default: ‘=’ or ‘IN’.
Supported: =, <, >, >=, <=, IN,NOT IN, LIKE, BETWEEN, ISNULL, IS NOT NULL
return The called query object.
/**********************************************************************/
->where($snippet, $args = array())
$snippet Where clause (with placeholders)
$args Assoc array of placeholders and placeholder values.
/**********************************************************************/
->db_or()->condition()->condition() return
Condition of OR-ed conditions.
/**********************************************************************/
->db_and()->condition()->condition()
return Condition of AND-ed conditions.
/**********************************************************************/
->isNull($field)
->isNotNull($field)
$field The field to check.
return The called query object.
/**********************************************************************/
->exists(SelectQueryInterface $select);
->notExists(SelectQueryInterface $select);
$select The query to check.
return The called query object.
/**********************************************************************/
以上是关于sql db query db_select条件的主要内容,如果未能解决你的问题,请参考以下文章