摘要:
1 查询 2 $data = Yii::app()->db->createCommand('select * from admin where id between 1 and 10')->query();//执行一个非查询的sql语句 3 $data = Yii::app()->db->createCommand('select * from admin where id between 1 a 阅读全文
摘要:
1 查询 2 3 条件-绑定参数-返回多个对象 4 $admin = Admin::model()->findAll($condition, $params); 5 $admin = Admin::model()->findAll("username = :name", [":name" => $username]); 6 $admin = Admin::model()->findAll("sta 阅读全文