Questions tagged «zend-db»

14
如何在zend框架中打印确切的sql查询?
我有以下代码是我从模型中获取的, ... $select = $this->_db->select() ->from($this->_name) ->where('shipping=?',$type) ->where('customer_id=?',$userid); echo $select; exit; // which gives exact mysql query. ..... 当我在zend中使用更新查询时, $up_value = array('billing'=> '0'); $this->update($up_value,'customer_id ='.$userid.' and address_id <> '.$data['address_Id']); 在这里我想知道确切的mysql查询。有什么办法可以在zend中打印mysql查询吗?友善的建议

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.