select name,salary from workers
order by hiredate
在select子句中没有出现的列,也是可以在order by中使用的
select distinct name,country
from workers
在此句中order by使用的列没有意义,只能使用distinct中的列