上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: 描述 有一个员工表employees简况如下: 有一个部门领导表dept_manager简况如下: 请你找出所有非部门领导的员工emp_no,以上例子输出: 题目:获取所有非manager的员工的emp_no 方法1:NOT IN+子查询 select emp_no from employees w 阅读全文
posted @ 2021-10-01 14:16 杜嘟嘟 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 描述 有一个薪水表,salaries简况如下: 请你找出所有员工具体的薪水salary情况,对于相同的薪水只显示一次,并按照逆序显示,以上例子输出如下: 找出所有员工当前(to_date=‘9999-01-01’)具体的薪水salary情况,对于相同的薪水只显示一次,并按照逆序显示 方法1: dis 阅读全文
posted @ 2021-10-01 13:46 杜嘟嘟 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 描述 有一个薪水表,salaries简况如下: 请你查找薪水记录超过15次的员工号emp_no以及其对应的记录次数t,以上例子输出如下: 题目:查找薪水涨幅超过15次的员工号emp_no以及其对应的涨幅次数t题目隐含:1.一条记录就算一次涨幅(严格意义上,从第二条记录算起才算一次涨幅)2.任何一条记 阅读全文
posted @ 2021-10-01 13:32 杜嘟嘟 阅读(33) 评论(0) 推荐(0) 编辑
摘要: select employees.last_name,employees.first_name,dept_emp.dept_no from employees left join dept_emp on employees.emp_no = dept_emp.emp_no 阅读全文
posted @ 2021-09-30 12:55 杜嘟嘟 阅读(111) 评论(0) 推荐(0) 编辑
摘要: select employees.last_name,employees.first_name,dept_emp.dept_no from employees,dept_emp where employees.emp_no = dept_emp.emp_no; 阅读全文
posted @ 2021-09-30 12:50 杜嘟嘟 阅读(20) 评论(0) 推荐(0) 编辑
摘要: select A.*,B.dept_no from salaries A,dept_manager B where A.emp_no=B.emp_no and A.to_date='9999-01-01' AND B.to_date='9999-01-01' order by A.emp_no 阅读全文
posted @ 2021-09-27 12:44 杜嘟嘟 阅读(77) 评论(0) 推荐(0) 编辑
摘要: select * from employees where hire_date = (select distinct hire_date from employees order by hire_date desc limit 1 offset 2) 阅读全文
posted @ 2021-09-27 08:49 杜嘟嘟 阅读(73) 评论(0) 推荐(0) 编辑
摘要: SELECT * FROM employees where hire_date in (SELECT MAX(hire_date) FROM employees) 阅读全文
posted @ 2021-09-26 12:50 杜嘟嘟 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 在Spring Boot 2.X应用程序中可以使用注解@CrossOrigin,也可以通过使用WebMvcConfigurer对象来定义全局CORS配置。 @CrossOrigin注解示例代码 接口类:HelloController @RestController public class Hell 阅读全文
posted @ 2021-09-23 16:30 杜嘟嘟 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 在order by 字段上加上索引 阅读全文
posted @ 2021-08-31 16:11 杜嘟嘟 阅读(13) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页