经常使用的MySQL查询语句

查询1987年之后出生的学生的姓名和出生年份 select sname,(2008-Sage) as birthday from student where (2008-Sage)>1987 order by (2008-Sage) asc; --查询选修了2号课程学生的学号及其成绩,查询结果按分数降序排列 select Sno,grade from sc where cno='002' orde
相关文章
相关标签/搜索