Transact-SQL 中一个简单的问题
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 
 为什么我的运行结果不对啊 
------解决方案--------------------打印内容在[消息]那个TAP中显示,数据在[网格]中显示