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
)
2024-03-29 13:03:10
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
)