查询语句中or与and怎么一起用?

浏览:1686 发布日期:2016/04/30 分类:求助交流 关键字: or与and
有个student表,有四个字段做查询用:
name 姓名 varchar
height 身高 int
age 年龄 int
gender 性别 int 值=0或1

怎么生成以下SQL语句:
select count(*) as total
from student
where height>120 and height<150 and (age=12 or age=13)and gender=1;
最佳答案
评论( 相关
后面还有条评论,点击查看>>