标签:state UNC get rom set query order desc turn
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
标签:state UNC get rom set query order desc turn
原文地址:https://www.cnblogs.com/ffeng0312/p/9845781.html