- $Model->where("id=%d and username='%s' and
- xx='%f'",array($id,$username,$xx))->select();
- $Model->where("id=%d and username='%s' and
- xx='%f'",$id,$username,$xx)->select();
- $model->query('select * from user where id=%d and status=%d',$id,$status);
- $model->query('select * from user where id=%d and
- status=%d',array($id,$status));
execute方法用法同query方法。
%s -- 表示字段串
%d -- 表示整形數字
%f -- 表示浮點數