考试
1970-01-01 08:00:00

在s_c数据库中,创建一个存储过程totalcredit,根

题目描述

在s_c数据库中,创建一个存储过程totalcredit,根据输入的学生姓名,计算其总学分。(使用输出参数)。并执行该存储过程

答案解析

create proc totalcredit @name char(10), @allcre int output as select @allcre=sum(ccredit)from student,course,sc where student.sno=sc.sno and sname=@name group by sc.sno declare @asum int exec totalcredit

加载中...
AI正在思考中,请稍候...