2012-07-26 78 views

回答

6

降序工資爲了你的結果只是排序,然後根據需要限制的結果集:

SELECT * FROM mytable ORDER BY salary DESC LIMIT 2 

見它sqlfiddle

1
SELECT 
    employee_id, 
    salary 
From 
    employee 
order by salary desc 
limit 2 ;