메소드 | 설명 | |
---|---|---|
where ( string $expr, mixed $_ = null ) : |
where('a=?', 1) => "WHERE a=1" where('a=?', Sql::native('now()')) => "WHERE a=now()" where('a IN (?)', [1, 2]) => "WHERE a IN (1,2)" | |
whereArgs ( string $args ) : |
whereArgs([ 'a'=>1, 'b'=>['IN'=>[1,2]] 'c'=>['BETWEEN'=>[1,2]] 'd'=>['<>'=>1] ]) |