想把字段为空的纪录放在最前面

shdcsdn 2007-02-09 07:36:24
no name age
1001 aaa 10
2002 20
3000 33
4000 ddd 4

经过select后,想变成。
no name age
2002 20
3000 33
1001 aaa 10
4000 ddd 4

如何select,谢谢了!

...全文
295 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
preciouszhao 2007-02-12
  • 打赏
  • 举报
回复
select no,name,age from table order by 2 DESC;
preciouszhao 2007-02-12
  • 打赏
  • 举报
回复
select no,name,age from table order by 2;
yyy21 2007-02-10
  • 打赏
  • 举报
回复
select * from table order by name nulls first
vokeyliu 2007-02-09
  • 打赏
  • 举报
回复
按照name的降序排列啊
select * from aaa order by name desc

17,082

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧