需要postgresql查询,该查询在非空值的末尾返回空值,而不考虑升序/降序。需要postgresql查询,该查询在非空值后返回空值
对于前: - 我有一个列说有值1,5,3,0,空purchase_price,空
那么对于ORDER BY purchase_price ASC
它应该返回
0
1
3
5
null
null
和ORDER BY purchase_price DESC
它应该返回
5
3
1
0
null
null
我需要概括的解决方案,我可以能够申请其中,'float'
,'string'
,'integer'
,'date'
数据类型
Thanx丹尼斯: - 它的作品gr8 .......... thanx为解释你保存我的几个小时....... – Salil 2011-05-20 09:39:46