where concat(`year`,'-',`month`) BETWEEN '2013-02' AND '2013-03';
如何像这样在cake php的自定义查询分页中使用此查询..
$conditions = array('concat('Payroll.year','-','Payroll.month') BETWEEN ? and ?' => array(2013-02, 2013-03));
$staff_list = $this->Payroll->find("all", array("fields" => array("Payroll.id", "Payroll.month", "Payroll.year"),"conditions"=>$conditions));
谢谢你。