經常使用的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
相關文章
相關標籤/搜索