order by的字段中存在null 排序

1.SELECT * FROM table1  ORDER BY CASE WHEN Col Is NULL Then 1 Else 0 End, Col

2.SELECT * FROM table1 ORDER BY isnumeric(col) desc,col

posted @ 2010-06-28 16:48  shitou  阅读(353)  评论(0编辑  收藏  举报