05 2018 档案
摘要:select substr('abcdefg',3) from dual;--cdefg--substr 截取 起始位置0和1是一样select substr('abcdefg',0,3) from dual--abc select substr('abcdefg',1,3) from dual--
阅读全文
摘要:1,【trunc(for dates)】TRUNC()函数处理日期select trunc(sysdate,'yy') from dual;--返回当年第一天select trunc(sysdate,'mm') from dual;--返回当月的第一天select trunc(sysdate,'dd
阅读全文
摘要:select e.job as 工作, sum(case e.deptno when 10 then sal end) as 部门10的工资, sum(case e.deptno when 20 then sal end) as 部门20的工资, sum(case e.deptno when 30
阅读全文
摘要:select mod(rr,2), v.* from (select rownum as rr,t.* from (select * from emp where sal is not null order by sal)t where rownum <=10 )v where rr>2 and m
阅读全文
摘要:select * from (select rownum as rr,t.* from (select * from emp where sal is not null order by sal)t where rownum <=10 )where rr>2;
阅读全文
摘要:ribbon是服务之间的负载 zuul是客户端的负载
阅读全文
摘要:Oracle修改表列长度 alter table 表名 modify column_name varchar2(32) alter table 表名 modify (column_name1 varchar(20) default null,column_name2 varchar2(30)); a
阅读全文
摘要:Intersect和Minus的操作和Union基本一致,这里一起总结一下: Union,对两个结果集进行并集操作,不包括重复行,同时进行默认规则的排序; Union All,对两个结果集进行并集操作,包括重复行,不进行排序; Intersect,对两个结果集进行交集操作,不包括重复行,同时进行默认
阅读全文
摘要:使用ELK管理SpringBoot日志 当我们开发一个新项目的时候,一个经常遇到的问题是日志的管理。ELK栈(Elastic,Logstash,Kibana)是一个功能强大且免费的日志管理解决方案。在本文中,将为您展示如何安装、如何设置ELK,如何使用它来管理SpringBoot应用程序中的默认格式
阅读全文

浙公网安备 33010602011771号