摘要: 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 阅读全文
posted @ 2019-08-20 17:36 第一夫人 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-08-20 16:27 第一夫人 阅读(1397) 评论(0) 推荐(0) 编辑