簡體   English   中英

使用NOTIN()的Kohana 3 ORM查詢

[英]Kohana 3 ORM query using NOTIN()

有沒有辦法在Kohana的ORM中使用http://dev.mysql.com/doc/refman/5.0/en/comparison-operators.html#function_not-in 就像是:

$products = ORM::factory('products')->notin('contry_id', $csl)->find_all();

使用where語句:

$products = ORM::factory('products')->where('contry_id', 'NOT IN', $csl)->find_all();

$ csl必須是數組

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM