leetcode# 第二高的薪水

題目: 我的解答:select distinct Salary from Employee order by Salary desc limit 1,1 問題點:不存在第二高則輸出null,這個不會寫   正確答案:select ifnull ((select distinct Salary from Employee order by Salary desc limit 1,1), null) 
相關文章
相關標籤/搜索