converting simple query to cake query?

前端 未结 3 1280
悲&欢浪女
悲&欢浪女 2021-01-28 20:05

Actually I have 1 query but I am unable to convert it into CakePHP query format.

$result = \"select 
             * from esl_userresults
           where 
               


        
3条回答
  •  一生所求
    2021-01-28 21:03

    You can use AppModel's query() function to run SQL query .

    ex : $this->ModelName->query('SELECT * FROMtable'); this will return an array of selected records . You can pass simple query as well as complex join query .

提交回复
热议问题