摘要:
对学员成绩表进行查询要求:1.查处任意及格两科的学员数量2.使用存储过程大家看看下面这种查询办法可行吗,有没有更好的方法!数据库表如下图:name 代表学员名称 f1 \f2\f3\'f4代表课程成绩存储过程如下:方法一:create proc testsasdeclare @agee floatset @agee=60select count(name) from test a where (a.f1>=@agee and a.f2>=@agee) or (a.f1>=@agee and a.f3>=@agee) or (a.f1>=@agee and 阅读全文