2
id employee_id salary
1 1 10000
2 2 20000
3 3 10000
4 4 40000
5 5 30000
我要選擇maximum two salary by using LIMIT
。所以如何選擇,在MySQL
數據庫?
id employee_id salary
1 1 10000
2 2 20000
3 3 10000
4 4 40000
5 5 30000
我要選擇maximum two salary by using LIMIT
。所以如何選擇,在MySQL
數據庫?
SELECT
employee_id,
salary
From
employee
order by salary desc
limit 2 ;