select z1,z2,z3,z4 from t order by decode(z3,null,0,1) select z1,z2,z3,z4 from t order by decode(z3,null,0,1)order中的decode是什么意思?谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 order by decode(z3,null,0,1) 等价于if z3 is null then order by 0else order by 1 SELECT ..... order by 0但是没有第0列,会报错的呀! 意思是按z3的值排序,z3为null的排在前面,其他值排在后面 "意思是按z3的值排序,z3为null的排在前面,其他值排在后面"其他值排在后面,这些值排序吗? 非null的值不排序,因为那个decode将非null的都转为1了。 两张表的最大值查寻SQL语句 求group by sql文 怎样查询2个oracle表中符合某个条件的内容啊? sqplus登陆问题 关于Oracle的Loop操作 ora-02068 03135错误,请高手指教?? 客户端程序都关闭数据库连接了,oracleConnect.Close(); 为何查V$session,这个连接还在? (谢谢给位高手!)怎样在用sys or system 登陆的环境下去访问别的用户的表? 简单问题 关于oracle dmp的问题请教 新手问题:vb6 ADO怎么调用ORACLE存储过程? 请大家帮我看看这个存储过程应该怎么改,急!!!
等价于
if z3 is null then
order by 0
else
order by 1
但是没有第0列,会报错的呀!
其他值排在后面,这些值排序吗?