2019年4月15日

06-oracle 通用函数

摘要: --nvl(数字|列名,默认值) 数字或列的值为null显示为0,不为null时显示原值 --nvl2(comm,comm,0)如果comm不为null则显示comm,为null则显示0 --nullif(表达式一,表达式二) 判断2个表达式是否相等 --decode(数值|列,值1,值1时输出的结 阅读全文

posted @ 2019-04-15 15:34 joeshang 阅读(139) 评论(0) 推荐(0) 编辑

2019年4月13日

05-oralce转换函数

摘要: to_char() 设置日期的显示格式 to_char() 进行数字格式化{如:to_char(987654321.789,'999,999,999,999,999.9999') 将数字三位一逗号显示} --to_char(sysdate,'yyyy-mm-dd')日期以年月日显示 --to_cha 阅读全文

posted @ 2019-04-13 21:45 joeshang 阅读(158) 评论(0) 推荐(0) 编辑

记事本

摘要: [oracle@joe ~]$ echo $LANGen_US.UTF-8 #!/bin/bash#d2=`date "+%Y-%m-%d %H:%M:%S"` 2019-04-25 18:30:00zk=`date "+%Y-%m-%d 09:00"`zs=`date "+%Y-%m-%d 15: 阅读全文

posted @ 2019-04-13 11:10 joeshang 阅读(133) 评论(0) 推荐(0) 编辑

2019年4月12日

sc

该文被密码保护。 阅读全文

posted @ 2019-04-12 10:43 joeshang 阅读(6) 评论(0) 推荐(0) 编辑

2019年4月10日

04-oracle时间函数

摘要: add_months(sysdate,x)x月之后的日期;last_day(sysdate)指定日期所在月份的最后一天;next_day(sysdate,'星期x')当前日期后的下一个星期x; months_between(sysdate,hiredate) 两个日期之间的月份间隔; extract 阅读全文

posted @ 2019-04-10 22:38 joeshang 阅读(243) 评论(0) 推荐(0) 编辑

2019年4月9日

03-oracle数值函数

摘要: --round(数值,想要保留的位数如1.2.3),作用:保留小数取值时四舍五入select round(678.656) 不保留小数,round(678.456,1) 保留一位小数,round(678.456,2) 保留两位小数,round(678.456,-1) 整数进位个位四舍五入,round 阅读全文

posted @ 2019-04-09 21:51 joeshang 阅读(213) 评论(0) 推荐(0) 编辑

2019年4月6日

Plsql Developer

摘要: #sql window:光标为块状时为覆盖模式,光标为竖线时为插入模式,可按insert进行模式切换。 阅读全文

posted @ 2019-04-06 22:27 joeshang 阅读(178) 评论(0) 推荐(0) 编辑

2019年4月5日

02-oracle字符函数

摘要: 字符函数(scott/tiger 登陆) --upper(col name)将字符大写 --lower(col name)将字符小写 --initcap(col name)字符串的首字母大写,其余小写 select ename 原表姓名,initcap(ename) 字符串的首字母大写 from e 阅读全文

posted @ 2019-04-05 22:12 joeshang 阅读(117) 评论(0) 推荐(0) 编辑

2019年4月4日

疑问

摘要: --以下2语句执行结果不同 select * from deptminusselect * from dept d where d.deptno='10' select * from dept d where d.deptno='10'minusselect * from dept col xxx 阅读全文

posted @ 2019-04-04 01:31 joeshang 阅读(100) 评论(0) 推荐(0) 编辑

2019年4月1日

linux 7.0+救援模式

摘要: 输入“e”进入GRUB页面! 定位到ro 然后修改ro为rw,并添加如下红框内的命令行! 使用下面的提示使用“Ctrl-x”start!!! 进入系统后,其实只是进入了一个安全模式下的内存系统,并不是真正的咱们正常使用的linux系统, /sysroot是我们需要救援的系统目录,可ls /sysro 阅读全文

posted @ 2019-04-01 15:22 joeshang 阅读(2060) 评论(0) 推荐(0) 编辑

导航