摘要: SQL Cookbook 笔记(Oracle)(1)条件选择 case when(2)随机排序 order by dbms_random.value()(3)空值替换 coalesce、nvl(6)null值排序处理 select * from emp t order by t.comm desc 【nulls last | nulls first】(7)条件排序 select * from emp t order by t.job, case when t.job = 'SALESMAN' then comm else sal end desc, t.empno (8)集合. 阅读全文
posted @ 2014-02-10 16:38 sleepyy 阅读(727) 评论(0) 推荐(0) 编辑