当前位置:Gxlcms > 数据库问题 > 2、面试数据库题

2、面试数据库题

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

如下表,查询成绩大于80的人名

技术分享图片

sql语句思路:1.因为单列包含两个类型,故按类型分开查询。

2.查询语文成绩大于80的人名reult2 = select username from  xy_user where email>80 and password = ‘语文‘;

3.查询数学成绩大于80的人名且人名在2查询结果中select username from xy_user where email>80 and password = ‘数学‘ and username in reult2;

2、面试数据库题

标签:数据   use   语句   alt   div   技术   body   mail   ima   

人气教程排行