or 查询的问题

就是拉 2010-07-19 10:47:18

我使用K3的ORM查询数据库,但是要对一个字段的两种结果进行查询。如
where lid=20 or lid=10
不知道这种该怎样实现呢

where()->or_where()

后来才发现,连续使用 where() 也是允许的,kohana 会自动判断并帮你替换为 and_where()

Post new reply

Post new reply after log in
Remember me (Lost Password)