dapeng 2012-10-22 16:06:22 3677次浏览 0条回复 0 0 0
$score_count=Score::model()->findBySql("select count(score),sum(score) from oa_score where eid=$id and score_weight=:score_weight and cid=:cid and standard_id=:standard_id",array(":score_weight"=>$item_weight['pid_weight'],":cid"=>$key,":standard_id"=>$item->id));

这样的sql语句可以吗? 为什吗我得不到结果啊

    没有找到数据。
您需要登录后才可以回复。登录 | 立即注册