+ -
当前位置:首页 → 问答吧 → SQL语句求解

SQL语句求解

时间:2011-12-13

来源:互联网

要查询 class 表中字段 c_stu 值大于 50,或者小于 20的记录,并只返回 c_name 和 c_stu 字段

这个SQL语句要怎么写啊。谢谢,求解!!

作者: dragonboyl   发布时间: 2011-12-13

SQL code

select c_name,c_stu from tb where c_stu>50 or c_stu<20

作者: jinfengyiye   发布时间: 2011-12-13

SQL code
select c_name,c_stu from class where c_stu>50 or c_stu<20

作者: qianjin036a   发布时间: 2011-12-13

SQL code
select c_name,c_stu from class where c_stu>50 or c_stu<20

作者: Beirut   发布时间: 2011-12-13

SQL code
select c_name,c_stu from tb where c_stu>50 
union all
select c_name,c_stu from tb  where c_stu<20

作者: fredrickhu   发布时间: 2011-12-13