1.文本处理函数 Left() 返回串左边的字符 Right() 返回串右边的字符 Length() 返回串的长度 Locate() 找出串的一个子串 SubString() 返回子串的字符 Lower() 将串转换为小写 Upper() 将串转换为大写 LTrim() 去掉串左边的字符 RTrim ...
分类:
其他好文 时间:
2017-09-19 19:56:16
阅读次数:
181
select x.*,datediff(x.next_hd,x.hiredate) difffrom (select e.deptno,e.ename,e.hiredate,(select min(d.hiredate) from emp dwhere d.hiredate > e.hiredate ...
分类:
其他好文 时间:
2017-09-14 23:57:23
阅读次数:
388
select datediff(ward_hd,allen_hd)from (select hiredate as ward_hdfrom empwhere ename='WARD') x,(select hiredate as allen_hdfrom empwhere ename='ALLEN' ...
分类:
其他好文 时间:
2017-09-14 23:53:38
阅读次数:
214
select date_format(date_add(cast(concat(year(current_date),'-01-01')as date),interval t500.id-1 day),'%W%) day,count(*)from t500where t500.id<=datedif ...
分类:
其他好文 时间:
2017-09-14 23:47:38
阅读次数:
230
select datediff(ward_hd,allen_hd)*24 hr, datediff(ward_hd,allen_hd)*24*60 min, datediff(ward_hd,allen_hd)*24*60*60 secfrom ( select max(case when enam ...
分类:
其他好文 时间:
2017-09-14 23:41:02
阅读次数:
150
一、概念 简单工厂模式(Simple Factory Pattern)属于创建型模式,又叫做静态工厂方法模式(Static FactoryMethod Pattern),可是不属于23GOF设计模式之中的一个。简单工厂模式是由一个工厂对象决定创建出哪一种产品类的实例。 二、UML图 简单工厂主要分为 ...
分类:
其他好文 时间:
2017-07-26 21:57:52
阅读次数:
183
(一)深入浅出理解索引结构 实际上,您可以把索引理解为一种特殊的目录。微软的SQL SERVER提供了两种索引:聚集索引(clustered index,也称聚类索引、簇集索引)和非聚集索引(nonclustered index,也称非聚类索引、非簇集索引)。下面,我们举例来说明一下聚集索引和非聚集 ...
分类:
数据库 时间:
2017-07-20 14:11:05
阅读次数:
186
DATEDIFF(DAY, RD.ReservationTime, GETDATE()) = 0 -- 对比当前时间 CONVERT(INT,Datename(hour,GetDate()))>13 --获取当前几点,并将其转化成int ...
分类:
数据库 时间:
2017-07-03 14:05:08
阅读次数:
205
import javax.imageio.ImageIO; import java.awt.*; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.tex... ...
分类:
编程语言 时间:
2017-07-01 21:38:56
阅读次数:
201
存储过程developer_count 是根据传入参数searchType 决定是使用那种查询方式,本存储过程中包含的其他的参数是{起始时间:startime,结束时间:endtime} [html] view plain copy CREATE PROCEDURE developer_count ...
分类:
数据库 时间:
2017-07-01 16:23:13
阅读次数:
210