
如何按升序查询分数
用order by
select * from Student order by score

降序则是在后面加desc
select * from Student order by score desc

简要说说and和or运算符
查询名字为小明 并且是男生的学生 用and
select * from Student where name='小明' and sex='男'
查询名字为小红或者年龄为11岁的学生 两者条件只要一个符合就能查询
select * from Student where name='小红' and age=11
and和or也可以结合使用的