日期:2014-05-16 浏览次数:20386 次
select id,description from security_application where mod(id,4)=0 order by description
select id,description from security_application where mod(id,4)=0 order by description desc
select id,nvl(description,'...') from security_application where mod(id,4)=0 order by description desc
select id,decode(description,null,'...', description) from security_application where mod(id,4)=0 order by description desc表示当description为空时则返回’...’,如果不为空则返回description通过这个函数可以定制null的排序位置。
select id,description from security_application where mod(id,4)=0 order by (case description when null then '...' else description end) desc
select id,description from security_application where mod(id,4)=0 order by description desc nulls first
select id,description from security_application where mod(id,4)=0 order by description desc nulls last