数据库函数无法使用 $db->in () 函数
在KOHANA手册中,是有in()函数的,可是在我下载的里面不可以用in()
Creates an IN portion of a query. It has three parameters:
[*]the column to match[*]an array or string of values to match against[*](boolean), to create a NOT clause instead$db->in('title', array(1,2,3,4,5));
This generates "`title` IN ('1','2','3','4','5')"
手册地址:http://doc.kohanaphp.com/libraries/database/builder#in
难道是2.1.1版本还未支持???
[ 本帖最后由 roveinlove 于 2008-4-26 15:46 编辑 ] 对,2.1.1里没有in()。 刚刚去官方找了一个,已经有in()了,开心
http://trac.kohanaphp.com/browser/trunk/system/libraries/Database.php?rev=2599
把这个里面的覆盖掉原来的就可以咯 SVN到2.1.2或trunk更简单啊。 - -
页:
[1]