select name,salary from workers
order by hiredate
在select子句中没有出现的列,也是可以在order by中使用的
select distinct name,country
from workers
order by hiredate
在此句中order by使用的列没有意义,只能使用distinct中的列
select name,salary from workers
order by hiredate
在select子句中没有出现的列,也是可以在order by中使用的
select distinct name,country
from workers
order by hiredate
在此句中order by使用的列没有意义,只能使用distinct中的列
转载于:https://www.cnblogs.com/geling/archive/2013/04/07/3003549.html