SQL是:
select name, value from config where parent_id in ( select id from config where
name = 'Yii');
答案 0 :(得分:1)
我不确定您的情况,但尝试在条件字段
上添加子查询$criteria = new CDbCriteria();
$criteria->select ='name, value';
$criteria->addCondition( select id from config where name = 'Yii');