- 浏览: 779607 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (480)
- Spring (12)
- Hibernate (8)
- Struts2 (4)
- Java 基础-JDK-类-接口-URI-专题研究 (27)
- 线程、线程池、多线程高并发高可用、Socket通信 (15)
- Oracle数据库 (20)
- 一般-前端js-html-其它 (25)
- JYSK-互联网金融、金融科技、支付、公司、新闻等等 (8)
- Ajax-jQuery开源框架 (7)
- Json-轻量级的数据交换格式 (14)
- JavaScript (15)
- Jsp、Servlet、Servlet+JSP+JavaBean开发模式(MVC) (18)
- Html-JavaScript-前端-调用接口 (12)
- Sql Server 2005 (6)
- 正则表达式 (2)
- Java tools (18)
- 加签与验签、加密与解密 (3)
- Ajax技术核心-xmlHttpRequest(简称XHR) (6)
- xml-数据交换格式 (3)
- 信息采集 (1)
- Http - Https - HttpClient - httpCore-SSL-TLS (10)
- HtmlParser (2)
- 标签库 (1)
- SMS (2)
- jxl-导入导出 (4)
- poi-导入导出 (2)
- 定时器Timer+Quartz (6)
- 工作流引擎JBPM3.2.3 (4)
- 工作流引擎JBPM4 (0)
- 数据源-JNDI (0)
- tomcat、weblogic等应用服务器 (6)
- 工作流引擎jbpm5 (1)
- 搜索引擎Lucene (1)
- ant (1)
- 大数据-HBase (2)
- bigtable (0)
- 数据库设计 (4)
- jquery tab (0)
- mybatis (5)
- jquery ui 1.10.3 (5)
- Jboss7 (1)
- 规则引擎drools (0)
- 工作流引擎Activiti5 (0)
- 数据库-用户自定义函数 (0)
- 数据库-存储过程 (2)
- 数据库-视图 (0)
- 数据库-触发器 (0)
- 数据库-sql (2)
- highcharts-图表工具 (1)
- sql server 2008 (6)
- 诗词-工作室 (2)
- 数据割接 (1)
- GIS-地理信息系统 (2)
- RS-遥感技术 (1)
- GPS-全球定位系统 (1)
- java整合flex_RIA开发 (3)
- C#编程语言 (5)
- webservice_axis2_cxf_soap_wsdl (2)
- sql语句 (3)
- Flex_WebService_GIS (25)
- PHP编程语言 (0)
- ExtJS4.2 (1)
- Spring mvc (5)
- EasyUI1.4.2 (16)
- 日期时间工具类 (4)
- 随机数 (1)
- Arcgis api for js (0)
- Mysql数据库 (9)
- 移动互联网 java html5/flash socket netty (0)
- API接口 (1)
- AndroidStudio (0)
- Git (2)
- Maven (5)
- IDEA (0)
- 大数据-Hadoop (2)
- JPA (0)
- Spring boot (4)
- JSF (0)
- nginx_lua_module_redis (2)
- Activiti (1)
- bootstrap (1)
- AngularJS (10)
- 数据库-索引 (1)
- Linux及其连接工具SSH (4)
- java日志管理 (2)
- islider滑动控件 (1)
- jquery (1)
- 异常处理Exception (1)
- 秒杀与类秒杀系统 (1)
- 连接数据库、数据库连接池 (4)
- 数据库-临时表 (1)
- 软件设计模式-单例、多例、代理、工厂、观察者 (3)
- 集合框架 (5)
- 人工智能--Artificial intelligence、神经网络算法、机器学习 (1)
- 分布式应用 (1)
- SOA服务-Dubbo框架-Thrift框架 (2)
- Zookeeper分布式服务框架 (2)
- intellij idea (1)
- python编程语言 (0)
- 消息队列_MQ (0)
- 消息队列_RabbitMQ (2)
- 消息队列_ActiveMQ (1)
- 消息队列_Kafka (2)
- 缓存_Redis (4)
- 缓存_Memcache (0)
- 缓存_Ehcache (0)
- ivy-ivyde (1)
- google-protocol buffers (1)
- 正向代理-正向代理服务器 (1)
- 反向代理-反向代理服务器 (1)
- JVM内存模型 (0)
- Thunder框架 (1)
- NIO-非阻塞式IO (0)
- 软件测试、性能测试 (1)
- 序列化、Serializable接口、Externalizable接口 (3)
- 线程池-ExecutorService-ThreadPoolExecutor (1)
- web.xml (1)
- java开发-java工具-实用工具网站 (6)
- 医疗 (1)
- Filter-过滤器 (2)
- Unicode码-双字节字符编码 (1)
- OpenResty (1)
- 计算机网络 (1)
- eclipse_myeclipse_intellij idea (3)
- Enum (1)
- 大数据--Big Data (1)
- 云计算--Cloud computing (1)
- Elastic-Job (1)
- Redis (2)
- 文件流-IO操作 (6)
- 计算机基础知识 (1)
- Hessian-二进制RPC协议 (1)
- String类 (3)
- BigDecimal类 (1)
- java重要接口 (1)
- ReactJS (1)
- 跨域问题 (0)
- Map (1)
- 注解 (1)
- ASCII码-单字节字符编码 (1)
- 微服务、微服务架构 (2)
- RPC协议、RPC服务、RPC框架 (0)
- java反射 (1)
- java项目之classpath (1)
- 经典算法-树 (1)
- listener-监听器 (1)
- Interceptor-拦截器 (1)
- pojo javabean (2)
- 计算机科学与技术-进阶 (1)
- 代码规范与文档编写 (1)
- UML-统一建模语言 (1)
- 对接微信、支付宝 (3)
- 压力测试 (1)
- 办公软件-Excel (1)
- 办公软件-PPT (0)
- UTF8、GBK编码 (1)
- 微服务架构:Spring Cloud架构-Dubbo架构 (6)
- Nginx (1)
- 点滴业务 (1)
- form表单-json数据-转换与接口调用 (1)
- Junit单元测试 (1)
- 大数据-Spark (1)
- 大数据-Storm (1)
- 数据库事务-Spring事务 (0)
- elasticsearch (1)
- windows (1)
最新评论
//上午值班人数为1人或2人时,查出值班信息和个人信息 select b.contact as mContact,b.email as mEmail, c.contact as m2Contact,c.email as m2Email, t.* from( select substr(a.morning_people_ids,0,instr(a.morning_people_ids,',',1,1)-1) as amId, substr(a.morning_people_ids,instr(a.morning_people_ids,',',1,1)+1) as bmId, a.* from tb_duty a ) t, tb_duty_person_info b, tb_duty_person_info c where 1=1 and nvl2(t.amId,t.amId,t.bmId)=b.person_id and t.bmId=c.person_id and t.dscd='340100' and t.unit_id=4 and t.day0='2015-08-06'
//整个8月的 select m1.person_name as mName, m1.contact as mContact,m1.email as mEmail, m2.person_name as m2Name, m2.contact as m2Contact,m2.email as m2Email, a1.person_name as aName, a1.contact as aContact,a1.email as aEmail, a2.person_name as a2Name, a2.contact as a2Contact,a2.email as a2Email, e1.person_name as eName, e1.contact as eContact,e1.email as eEmail, e2.person_name as e2Name, e2.contact as e2Contact,e2.email as e2Email, l1.person_name as lName, l1.contact as lContact,l1.email as lEmail, l2.person_name as l2Name, l2.contact as l2Contact,l2.email as l2Email, t.week_day, t.flag, t.day0 from( select substr(a.morning_people_ids,0,instr(a.morning_people_ids,',',1,1)-1) as mId, substr(a.morning_people_ids,instr(a.morning_people_ids,',',1,1)+1) as m2Id, substr(a.afternoon_people_ids,0,instr(a.afternoon_people_ids,',',1,1)-1) as aId, substr(a.afternoon_people_ids,instr(a.afternoon_people_ids,',',1,1)+1) as a2Id, substr(a.evening_people_ids,0,instr(a.evening_people_ids,',',1,1)-1) as eId, substr(a.evening_people_ids,instr(a.evening_people_ids,',',1,1)+1) as e2Id, substr(a.leader_ids,0,instr(a.leader_ids,',',1,1)-1) as lId, substr(a.leader_ids,instr(a.leader_ids,',',1,1)+1) as l2Id, a.* from tb_duty a ) t, tb_duty_person_info m1, tb_duty_person_info m2, tb_duty_person_info a1, tb_duty_person_info a2, tb_duty_person_info e1, tb_duty_person_info e2, tb_duty_person_info l1, tb_duty_person_info l2 where 1=1 and nvl2(t.mId,t.mId,t.m2Id)=m1.person_id and t.m2Id=m2.person_id and nvl2(t.aId,t.aId,t.a2Id)=a1.person_id and t.a2Id=a2.person_id and nvl2(t.eId,t.eId,t.e2Id)=e1.person_id and t.e2Id=e2.person_id and nvl2(t.lId,t.lId,t.l2Id)=l1.person_id and t.l2Id=l2.person_id and t.dscd='340100' and t.unit_id=4 and to_char(to_date(t.day0,'yyyy-mm-dd'),'yyyy-mm')='2015-08'
附:
//查询tb_duty_person_info第11-20条记录(根据person_id排序): //0.031秒 select a.* from ( select rownum rn ,b.* from tb_duty_person_info b where rownum<21 order by b.person_id ) a where a.rn>10; //0.047秒 select a.* from ( select rownum rn ,b.* from tb_duty_person_info b order by b.person_id ) a where a.rn>10 and rn<21 ;
相关推荐
查询oracle数据库中单表中所有字段名
1.从第二个单引号开始被视为转义符,如果第二个单引号后面还有单引号(哪怕只有一个)。 SQL> select '''' result from dual; RESULT ------ ' 第二个单引号被作为转义符,第三个单引号被转义,可将sql写成这样更...
而采用非绑定方式时许多程序员大都忽略了对单引号的特殊处理,一旦SQL语句的查询条件的变量有单引号出现,数据库引擎就会报错指出SQL语法不对,本文为大家介绍两种可以解决和处理这种单引号的问题的方法(以VB为例子...
SQL中存储过程中SQL语句的单引号和双引号问题[总结].pdf
假如有下述表格: mytabe 字段1 username 字符串型(姓名) 字段2 age 数字型(年龄) 字段3 birthday 日期型(生日) 字段4 marry 布尔型(是否结婚,结婚为True,未结婚为False) 字段5 leixing ...
本文主要讲了一下关于altium中单个元器件的安全间距设置,一起来学习一下
该工程主要实现对键盘单个按键的响应,工程目录中还附上了一个名为《配套文档-VC单个键盘按键的响应.pdf》的文档,对VC++中单个键盘按键的响应进行详细的说明,其中包含了作者为你精心准备的每个键盘按键对应的十...
关于测试中单个模块测试话术
主要介绍了php中单个数据库字段多列显示、分行分列显示技巧,也可称为单字段分页、横向输出,需要的朋友可以参考下
之前写了篇文章《Oracle... 假设表为tb,字段为col,要在col中查询包含“%”或“_”字符的字段,sql如下: – Oracle select * from tb where col like '%\%%' or col like '%\_%' escape '' sql中“escap
直接嵌套肯定是不行的,java中用反斜杠做转义符也是不行的,在sql中是用单引号来做转义符的
10.ESQL/C中单记录的检索和查询
Java多线程编程环境中单例模式的实现
概念学习可以形式化为寻找与训练实例...用模糊集合的思想,把{0,1}-值函数扩展到[0,1]-值,[0,1]单位区间的每一个实数,都可以用于考虑概念学习算法,而且,可以用模糊距离和贴近度定义假设与训练实例之集的相容性。
Excel中单选钮的应用——制作单选题.pdf 学习资料 复习资料 教学资源
MS-SQL Server 中单引号的两种处理方法
FileRenameScript 重命名目录中单个或多个文件的脚本
Recordset中单条记录读出 SQL查询举例 SQL添加记录举例 SQL修改记录举例