CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
BEGIN
declare M int;
set M = N-1;
RETURN
(
# Write your MySQL query statement below.
select distinct salary from Employee order by salary desc limit M,1
);
END
原文地址:https://www.cnblogs.com/ffeng0312/p/9845781.html
时间: 2024-08-29 18:01:42