精选优质文档-倾情为你奉上存储过程、触发器练习1、在学生选课数据库中,创建一存储过程deptmale,查询指定系的男生人数,其中系为输入参数,人数为输出参数。create proc p_deptdept char(20),mannum int outputasselect allcre=count(sno) from student where sdept=dept and ssex=男declare num intexec p_dept 计算机系,num outputprint num2、在s_c数据库中,创建一个存储过程totalcredit,根据输入的学生姓名,计算其总学分。(使用输出参数)。并执行该存储过程。create proc p_couname char(10),allcre int outputasselect allcre=sum(ccredit) from student,course,sc where student.sno=sc.sno and course.