Zend-framework DB: OR instead of AND operator

后端 未结 3 463
醉话见心
醉话见心 2021-02-05 22:23

have such zend query:

$select = $this->_table
               ->select()
               ->where(\'title LIKE  ?\', \'%\'.$searchWord.\'%\')
                      


        
3条回答
  •  萌比男神i
    2021-02-05 22:47

    $this->_table->select()->orWhere($condition);
    

    To build more complexe queries (i.g. sub-conditions) you might have to use $this->table->getAdapter()->quoteInto() and write your SELECT manually.

提交回复
热议问题