if (select avg(age) from stu_infor)<20
begin
print '学生的平均年龄小于20岁'
select * from stu_infor where age <20
end
else
begin
print '学生的平均年龄大于20岁'
select * from stu_infor where age >20
end
为什么我的运行结果不对啊
begin
print '学生的平均年龄小于20岁'
select * from stu_infor where age <20
end
else
begin
print '学生的平均年龄大于20岁'
select * from stu_infor where age >20
end
为什么我的运行结果不对啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货