查询全体学生的姓名及其出生年份 (数据库)
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:
其他几道没有把握.就不放出来了
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-05-24 06:57:45
类似问题(10)
-
佚名2024-05-24 21:28:11
问SQL查询出有成绩不及格的学生的学号,姓名,课程名。
答select a.学号,a.姓名,b.课程名from tbStudent a,tbCourse b,tbScore cwhere c.成绩学号=c.学号 and...
-
佚名2024-05-24 08:04:01
问数据库姓名的查询(姓,名字段分开)
答select 字段1+字段2 from 表 是这个意思吗!?你在数据库里试一下!
-
佚名2024-05-24 06:46:09
问ORACLE数据库 查询表名 查询列名 查询列中所有数据的语法分别是?
答1.查询所有表的表名: select table_name from user_tables解释:从系统表user_tables中可以查找出所有的表名字。2.查...
-
佚名2024-05-24 14:49:27
问SQL查询出有成绩不及格的学生的学号,姓名,课程名。
答select a.学号 , a.姓名 , b.课程名from tbStudent a , tbCourse b , tbScore cwhere c.成绩 &l...
-
佚名2024-05-24 08:00:00
问如何在access数据库中从多个表格中查询同一数据
答不同年份的数据存在不同的表里么?那直接用union all把两个表的查询拼接起来,比如select * from 2014数据表 where 球员id= 1un...
-
佚名2024-05-24 08:00:00
问如何查询一个数据库中所有表的某个字段
答1.查询数据库中的所有数据库名:SELECT Name FROM Master..SysDatabases ORDER BY Name2.查询某个数据库中所有的...
-
佚名2024-05-24 08:00:00
问怎么样查询全体学生的学号姓名,出生年月的语句
答select 系名, 学生姓名, 出生年月 from 表名 where (系名, 出生年月) in (select 系名, min(出生年月) from 表名...
-
佚名2024-05-24 08:00:00
问数据库如何查询含有大写字母的名字?
答只能用正则表达式了,给你例子自己看看select * from tb where field REGEXP '[A-Z]'自己改下
-
佚名2024-05-24 08:00:00
问在数据库中如何查询姓名是三个汉字(重点!)的学生情况
答当然要用like啦!例子:select ;from ;where sname like`___`;给你个格式:[not]LIKE‘<...
-
佚名2024-05-24 08:00:00
问数据库中查询时,要查询姓"黄"的如何查询?
答黄姓最早的发源地应在金河南省潢川县西部一带。黄国灭于楚之后,黄姓族人散居四方。
风水
起名
网名
说说
- 1 失恋般感觉的个性签名
- 2 放弃他的说说
- 3 为什么说说回复后面有个小锁
- 4 女生说说唯美富有哲理
- 5 写一种花并说说它有什么品质
- 6 皮肤黑白说说
- 7 相守未来的爱情的说说
- 8 我想让你幸福的说说
- 9 安惠护肤品说说
- 10 情人节还在吵架说说