摘要:
问题 数据SQL create table log01 ( id int primary key auto_increment, num int )charset=UTF8MB4; insert into log01(num) values(1), (1), (1), (2), (2), (3), 阅读全文
摘要:
问题 正解 drop PROCEDURE if EXISTS getNthHighestSalary; create PROCEDURE getNthHighestSalary(N int) begin SELECT * FROM employee e WHERE 4=( SELECT count( 阅读全文
摘要:
问题 答案 -- 方法1: where子查询+max SELECT max(salary) from leetcode_db.employee AS ta where salary < (select MAX(Salary) from leetcode_db.employee AS tb); -- 阅读全文