有没有办法将http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_not-in与Kohana的对象关系映射一起使用?类似于:
$products = ORM::factory('products')->notin('contry_id', $csl)->find_all();
发布于 2012-02-24 10:22:16
使用where语句:
$products = ORM::factory('products')->where('contry_id', 'NOT IN', $csl)->find_all();
$csl必须是数组
https://stackoverflow.com/questions/9428991
复制