其他分享
首页 > 其他分享> > 2021-02-21

2021-02-21

作者:互联网

在这里插入图片描述

SELECT * 
FROM employees
ORDER BY hire_date DESC 
LIMIT 2,1 ;

考虑去重:

SELECT * 
FROM employees
WHERE hire_date = (
    SELECT DISTINCT hire_date
    FROM employees
    ORDER BY hire_date DESC 
    LIMIT 2,1 
)

标签:02,hire,21,employees,LIMIT,2021,date,ORDER,SELECT
来源: https://blog.csdn.net/weixin_45378366/article/details/113918665