当前位置:Gxlcms > 数据库问题 > MySql_176. 第二高的薪水 + limit + distinct + null

MySql_176. 第二高的薪水 + limit + distinct + null

时间:2021-07-01 10:21:17 帮助过:25人阅读

MySql_176. 第二高的薪水

LeetCode_MySql_176

题目描述

技术图片

题解分析

技术图片
技术图片

代码实现

# Write your MySQL query statement below
select(
    select distinct Salary 
        from Employee
        order by Salary desc
        limit 1 offset 1) as SecondHighestSalary;

MySql_176. 第二高的薪水 + limit + distinct + null

标签:sel   http   src   stat   esc   select   from   statement   实现   

人气教程排行