我需要对使用 kohana 框架(版本 3.1.1.1)制作的一些旧系统进行更改,用户必须输入至少部分名称,系统必须输出结果。通常我使用 PHP,我可以很容易地做到这一点:
INSTR(my_table, 'some value') > 0 OR INSTR(my_other_table, 'some value') > 0
我看到了一些 kohana orm 语法,例如:
$temp = ORM::factory('table_name')->where('column1','=',$value1)->and_where('column2','=',$value2)->find();
但我不知道使用 kohana orm 实现我的 INSTR 查询的语法。有谁能够帮我?
谢谢你们。