jake.keh

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

select name,salary from workers

order by hiredate

在select子句中没有出现的列,也是可以在order by中使用的

select distinct name,country

from workers

order by hiredate

在此句中order by使用的列没有意义,只能使用distinct中的列

posted on 2013-04-07 10:45  jake.keh  阅读(124)  评论(0)    收藏  举报