1)向学生表里添加数据 添加数据的sql insertintostudent(学号,姓名,出生日期,性别)values('0001','猴子','1989-01-01','男');insertintostudent(学号,姓名,出生日期,性别)values('0002','猴子','1990-12-21','女');insertintostudent(学号,姓名,出生日期,性别)values('0003','马云','1991-12-21','男...
`出生日期`dateNOTNULL,`性别`varchar(255)NOTNULL,PRIMARYKEY(`学号`));INSERTINTO`student`VALUES('0001','猴子','1989-01-01','男');INSERTINTO`student`VALUES('0002','猴子','1990-12-21','女');INSERTINTO`student`VALUES('0003','马云','1991-12-21','男');INSERTINTO`student`...
group by 分组,如:[每个学生的平均:按学号分组](oracle,SQL server中出现在select 子句后的非分组函数,必须出现在group by子句后出现),MySQL中可以不用 having 对分组结果指定条件,如:[大于60分] order by 对查询结果排序,如:[增序: 成绩 ASC / 降序: 成绩 DESC]; limit 使用limt子句返回topN(对应这个问题...
常见的SQL面试题:经典50例 SQL基础知识整理select 查询结果,如: [学号,平均成绩:组函数avg(成绩)]from 从哪张表中查找数据,如:[涉及到成绩:成绩表score]where 查询条件,如:[b.课程号='0003' and b.成绩&… tcpisopen 常见的SQL面试题:经典50例 知乎用户NX6Uy9 SQL常见的面试题(太有用啦) ...
oracle(SQL server)数据库 intersect 交集 minus(except) 相减(差集) oracle 一、数据库对象:表(table) 视图(view) 序列(sequence) 索引(index) 同义词(synonym) 1. 视图: 存储起来的 select 语句 create view emp_vw as select employee_id, last_name, salary from employees where department_id = 90; ...
oracle(SQL server)数据库 intersect 交集 minus(except) 相减(差集) oracle 一、数据库对象:表(table) 视图(view) 序列(sequence) 索引(index) 同义词(synonym) 1. 视图: 存储起来的 select 语句 createviewemp_vwasselectemployee_id,last_name,salaryfromemployeeswheredepartment_id=90;select*fromemp_vw; ...
oracle(SQL server)数据库 intersect 交集 minus(except) 相减(差集) oracle 一、数据库对象:表(table) 视图(view) 序列(sequence) 索引(index) 同义词(synonym) 1. 视图: 存储起来的 select 语句 createviewemp_vwasselectemployee_id,last_name,salaryfromemployeeswheredepartment_id=90;select*fromemp_vw; ...