随笔分类 - Mysql
摘要:177. 第N高的薪水 CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT BEGIN declare m int; set m = N - 1; RETURN ( # Write your MySQL query statement bel
阅读全文
摘要:176. 第二高的薪水 # Write your MySQL query statement below select ifnull( (select distinct(salary) # distinct 用于去重 from Employee order by Salary desc # 降序排列
阅读全文
浙公网安备 33010602011771号