当前位置:Gxlcms > 数据库问题 > 数据库SQL语句练习题5--9

数据库SQL语句练习题5--9

时间:2021-07-01 10:21:17 帮助过:2人阅读

* from SCORE t where degree in (85,86,88)

技术分享

6、 查询Student表中“95031”班或性别为“女”的同学记录。

select * from STUDENT t where class=95031 or ssex = 

技术分享

7、 以Class降序查询Student表的所有记录。

select * from STUDENT t order by class desc

技术分享

8、 以Cno升序、Degree降序查询Score表的所有记录。

select * from SCORE t order by t.cno , t.degree desc

技术分享

9、 查询“95031”班的学生人数。

select count(1) 人数 from STUDENT t where class=95031

技术分享

数据库SQL语句练习题5--9

标签:

人气教程排行