请教:简单的find($condition)查询条件问题(and or)

#1 steptt

我想要查询的条件是:“ ... where  aa='aaa' and bb='bbb' “ 怎么实现?这样是什么意思?
是and关系还是or关系?
$condition = array('aa'=>$this->spArgs('aaa'),'bb'=>$this->spArgs('bbb'),);
                 $result = $zjkucun->find($condition);



同理:“ ... where  aa='aaa' or bb='bbb' “ 怎么实现?

2011-02-09 11:14:58

#2 jake

http://speedphp.com/post/database-where.html

2011-02-09 11:19:09