SQLServer--逻辑控制语句
IF-ELSE语句ELSE是可选部分,如果有多条语句,才需要BEGIN-NED语句块。use StuManageDBgodeclare @cAvg intSelect @cAvg=avg(CSharp)from ScoreListinner join Students on ScoreList.StudentId=Students.StudentId where ClassId=1Prin