嗨,我对 php yii 很陌生,我有以下查询
select d.* from customer_service_provider csp inner join (select id_customers from customer_devices cd where id_devices=2) as c on csp.id_customers=c.id_customers inner join user_devices ud on ud.id_users = csp.id_users inner join devices d on d.id = ud.id_devices
我如何使用 CDBcriteria 写入 php yii