2011年1月15日星期六

Re: [fw-db] Re: How can I group my queries with a Zend_Db_Select statement?

On Jan 15, 2011, at 8:51 AM, jbeall wrote:

>
> Ok, I think I found the answer. Let me know if this is the "right"
> way to do
> it. I put everything I want inside the same conditional group in
> the same
> where() call, like this:
>
> $select = $select->where('firstname LIKE ? OR lastname LIKE ?',
> 'Paul');
> $select = $select->where('gamedate ?', '2010-06-25');

Yes, this is the best way to do this particular expression, given the
simple interface of Zend_Db_Select.

Regards,
Bill Karwin

没有评论: