我想在CakePHP的2.0 MySQL查詢看起來像這樣:Mysql的CakePHP的2.0
select p.ciname HOSTNAME
,a.status HPSA
,m.status SM9
,p.status LDAP
from hpsas a, hpsms m, ldaps p
where (p.ciname = a.ciname)
and (p.ciname = m.ciname)
order by p.ciname;
這可能嗎?
模型的名稱是什麼? –
該模型如下所示:<?php class Test extends AppModel public $ useTable ='ldaps'; } – DenVer