Zend Framework Select Objects And UNION()

前端 未结 6 2007
南旧
南旧 2020-12-30 16:16

I\'m pretty sure this is not possible in Zend Framework (I have searched the Web, the documentation and issue tracker) but I just want to make sure so I\'m asking here.

6条回答
  •  清歌不尽
    2020-12-30 17:16

    Zend_Db_Select has a union method so I'd have thought it is possible, if you can build your query using a select object. I haven't used Zend_Db_Select (or the table subclass) with union but I'd imagine you can do something like

    $select = $this->select()
                   ->where('blah')
                   ->union($sql);
    

提交回复
热议问题