null相关函数

摘要: 1. nvl(expr1,expr2) 如果expr为空则返回expr2。如果expr2为表达式的话,不论expr1是否为空,expr2总是会执行,coalesce不会 select nvl(e.commission_pct,11) from employees e;--如果奖金为空,则返回11 2 阅读全文
posted @ 2016-02-15 21:38 收苞米的拖拉机 阅读(190) 评论(0) 推荐(0) 编辑

oracle字符串函数

摘要: 1. replace,translate --translate 字符级别的替换 --replace 字符串级别的替换 select replace('abaabbb','ab','c') from dual;--cacbb select translate('aaabbb','ab','ce') 阅读全文
posted @ 2016-02-15 20:46 收苞米的拖拉机 阅读(1859) 评论(0) 推荐(0) 编辑

oracle分析函数(3)

摘要: 1. ntile --ntile select e.employee_id, e.last_name, e.salary, e.department_id, ntile(10) over(order by e.salary desc) bucket --根据工资排序后,员工分配到10个组里,可以理解 阅读全文
posted @ 2016-02-03 10:44 收苞米的拖拉机 阅读(174) 评论(0) 推荐(0) 编辑

oracle分析函数(2)

摘要: 常用分析函数: 1. first,last --假设a := min(奖金) keep(dense_rank first order by 工资) --假设工资最少为1000,a为在工资等于1000的员工取最小的奖金 --假设b := min(奖金) keep(dense_rank last ord 阅读全文
posted @ 2016-02-01 21:44 收苞米的拖拉机 阅读(260) 评论(0) 推荐(0) 编辑

oracle分析函数(1)

摘要: 1. oracle中日期转换为yyyy年mm月dd日的形式 select to_char(sysdate,'"年"mm"月"dd"日"') from dual; 2. oracle分析函数语法 2.1 ORDER BY select e.last_name, e.manager_id, e.sala 阅读全文
posted @ 2016-01-31 21:11 收苞米的拖拉机 阅读(244) 评论(0) 推荐(0) 编辑

oracle树形查询

摘要: 1. WITH AS 示例 with e as (select * from employees), d as (select * from departments) select * from e,d where e.department_id = d.department_id and d.de 阅读全文
posted @ 2016-01-30 19:36 收苞米的拖拉机 阅读(577) 评论(0) 推荐(0) 编辑

oracle sql记录

摘要: 1.scn查询 方法1:select dbms_flashback.get_system_change_number from dual; 方法2:select current_scn from v$database 阅读全文
posted @ 2015-06-26 15:25 收苞米的拖拉机 阅读(132) 评论(0) 推荐(0) 编辑

css-常用导航条样式设置

摘要: html代码: 竖直导航 多肉植物 观花植物 观叶植物 草本植物 木本植物 水生植物 水平导航 形态特征 主要品种 生理特点 科属介绍 分布... 阅读全文
posted @ 2014-12-07 21:53 收苞米的拖拉机 阅读(1294) 评论(0) 推荐(0) 编辑

你认为你很了解Javascript?(个人解答)

摘要: 代码来源:http://www.ido321.com/914.html代码来源:http://dmitry.baranovskiy.com/post/91403200纯属个人理解,欢迎大神指正、1.1 if (!("a" in window)) {2 3 var a = 1;... 阅读全文
posted @ 2014-10-08 15:45 收苞米的拖拉机 阅读(194) 评论(0) 推荐(0) 编辑

oracle trunc函数截取日期

摘要: 1.select trunc(sysdate) from dual 2.select trunc(sysdate, 'mm') from dual 3.select trunc(sysdate,'yy') from dual 4.select trunc(sysdate,'dd') from dua... 阅读全文
posted @ 2014-09-04 17:22 收苞米的拖拉机 阅读(1897) 评论(0) 推荐(0) 编辑