Oracle数据库(亲测有效):
空字段排在最前:order by name nulls first;
空字段排在最后:order by name nulls last;
Mysql数据库(暂未测试):
select * from user u order by u.orderid is null, u.orderid
posted on 2019-01-25 16:12 心藏三叶生一花 阅读(348) 评论(0) 编辑 收藏 举报