查询全体学生的姓名及其出生年份 (数据库)
1: select name , age from student;
2: select major_num from student where major = '计算机专业';
3: select * from student where age >19;
4: select name , ID from stduent where major = '...';
5: select name , age from student where sex = '男' or age >19
6: select name , ID , sex from student where name like '王%'
7: select name , ID , sex from student where name NOT like '王%'
8: select name , ID , sex from student where name NOT like '_佳%'
9: select name , age ,major where age like [18-25]
10: select name , age ,major where age NOT like [18-25]
11: select * from student where name = (select major from student
where name = '王涛')
12: select ID,name from student where major_id = 001
13: select ID,name from student where major_id <> 001
14: select * from student where zhuanyechengji > 80
15: select ID,score from student where major_id = 001
Order by score DESC
16: select * from student order by age DESC ,major
17:
18: select count(*) from student
19: select count(*) from student where EXISTS (select scroe from
student)
20:
21:
22:
其他几道没有把握....就不放出来了
2: select major_num from student where major = '计算机专业';
3: select * from student where age >19;
4: select name , ID from stduent where major = '...';
5: select name , age from student where sex = '男' or age >19
6: select name , ID , sex from student where name like '王%'
7: select name , ID , sex from student where name NOT like '王%'
8: select name , ID , sex from student where name NOT like '_佳%'
9: select name , age ,major where age like [18-25]
10: select name , age ,major where age NOT like [18-25]
11: select * from student where name = (select major from student
where name = '王涛')
12: select ID,name from student where major_id = 001
13: select ID,name from student where major_id <> 001
14: select * from student where zhuanyechengji > 80
15: select ID,score from student where major_id = 001
Order by score DESC
16: select * from student order by age DESC ,major
17:
18: select count(*) from student
19: select count(*) from student where EXISTS (select scroe from
student)
20:
21:
22:
其他几道没有把握....就不放出来了
佚名
2024-06-04 04:34:10
类似问题(10)
-
佚名2024-06-04 06:57:45
问查询全体学生的姓名及其出生年份 (数据库)
答1:select name,age from student;2:select major_num from student where major='计算机专...
-
佚名2024-06-04 15:23:08
问数据库SQL语句中 查询选修了全部课程的学生的学号和姓名 理解
答首先头脑中有三点概念:1。EXISTS 子查询找到的提交NOT EXISTS 子查询中 找不到的提交说明:不要去翻译为存在和不存在,把脑袋搞晕。2。建立程序循环...
-
佚名2024-06-04 22:15:28
问数据库中sql语句查询没学全王老师所讲课程的学生姓名。
答数据库中sql语句查询没学全王老师所讲课程的学生姓名:select sname as 学生姓名 from s where not exists(select*f...
-
佚名2024-06-04 14:53:06
问如何用姓名以及生日查询身份证号
答不可以身份证上有十八位数前六为位是地区号,知道省市区后可以查到中间八位是和出生年月日一样的最后四位不确定,三位好象和你父母有一定关系的,最后一个好象随机最后四位...
-
佚名2024-06-04 20:48:39
问数据库姓名的查询(姓,名字段分开)
答select 字段1+字段2 from 表 是这个意思吗!?你在数据库里试一下!
-
佚名2024-06-04 18:30:32
问数据库中sql语句查询没学全王老师所讲课程的学生姓名。
答数据库中sql语句查询没学全王老师所讲课程的学生姓名:select sname as 学生姓名 from s where not exists ( select...
-
佚名2024-06-04 08:00:00
问如何查询一个数据库中所有表的某个字段
答1.查询数据库中的所有数据库名:SELECT Name FROM Master..SysDatabases ORDER BY Name2.查询某个数据库中所有的...
-
佚名2024-06-04 08:00:00
问用SQL语句查询学生表里面所有学生的姓名及其出生年份
答select s_name,to_char(s_birthday,'yyyy') 出生年份 from student
-
佚名2024-06-04 08:00:00
问SQL,用SELECT查询数据查询全部男学生的学号和姓名
答select SNO,SNAME from S where SSESX='男'下面的你没贴出详细的表结构,没人帮你了欢迎采纳我
-
佚名2024-06-04 08:00:00
问数据库中如何查询一个表中的列名称中的两个姓氏?
答第二个对,因为能确保姓wu的和姓wang的都能出现在结果列表中,而第一条语句用了and,这只能查询出姓名同时为wu和wang的人
风水
起名
网名
- 1 浅忆梦微凉网名
- 2 霸气双字网名
- 3 死党网名两个字
- 4 家群网名
- 5 浪漫暧昧情侣网名
- 6 跟融有关的昵称
- 7 百度贴吧在哪里设置昵称
- 8 京东里昵称可以取什么
- 9 快手独一无二昵称男生
- 10 表示有爱心的昵称
说说
- 1 袁伟的个性签名
- 2 古风超拽个性签名2015最新版
- 3 可爱个性签名超拽
- 4 徐子说说
- 5 关于情人节的搞笑说说
- 6 QQ空间搞笑说自已傻的说说
- 7 放宽心的说说
- 8 有时候自己特别笨说说
- 9 女朋友不理我时发的说说
- 10 王者荣耀幽默群说说