我有數組這樣如何從cake查詢數組中獲取正常的SQL查詢?
$conditions = array("Post.title" => "This is a post");
而且使用$條件,這種方法陣列。
$this->Post->find('first', array('conditions' => $conditions));
我想將$ conditions數組轉換爲正常的sql查詢。 我想用
$this->Post->query($converted_query);
,而不是
$this->Post->find('first', array('conditions' => $conditions));
只是因爲?或者你有沒有你沒有描述的目標? – tadman
我有10個cakephp查詢。在某些情況下,我想結合這個查詢並在mysqli中執行組合查詢 – EbinPaulose