赞
踩
use StuManageDB
go
if exists(Select * from sysobjects where name='usp_ScoreQuery')
drop procedure usp_ScoreQuery
go
create procedure usp_ScoreQuery --创建存储过程
as
--查询考试信息
select Students.StudentId,StudentName,ClassName,ScoreSum=(CSharp+SQLServerDB)
from Students
inner join StudentClass on Students.ClassId = StudentClass.ClassId
inner join ScoreList on Students.StudentId = ScoreList.StudentId
order by ScoreSum DESC
go
ex

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。