一、概述如果想要执行存储过程,我们应该使用 CallableStatement 接口。CallableStatement 接口继承自PreparedStatement 接口。所以CallableStatement 接口包含有Statement 接口和PreparedStatement 接口定义的全部...
分类:
编程语言 时间:
2015-01-30 01:16:57
阅读次数:
330
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: Statement returned more than one row, whe...
分类:
其他好文 时间:
2015-01-27 21:34:41
阅读次数:
807
转自:http://www.cnblogs.com/sc-xx/archive/2011/12/03/2275084.html这个文档几乎包含了oracle游标使用的方方面面,全部通过了测试 1 -- 声明游标;CURSOR cursor_name IS select_statement 2 ...
分类:
数据库 时间:
2015-01-27 19:51:52
阅读次数:
124
目录一、DML触发器二、INSTEAD_OF触发器三、系统触发器四、删除触发器 修改触发器状态 关闭打开--说明--1.事件发生之前(BEFORE)事件发生之后(AFTER)--2.触发条件子句WHEN--3.语句级(STATEMENT)触发器和行级(ROW)触发器--3.1 STATEMENT:是...
分类:
其他好文 时间:
2015-01-27 18:06:00
阅读次数:
123
背景
最近在一道 Java 习题中,看到这样的一道题:
What is the output when this statement executed:
System.out.printf(-7 % 3);
正整数的取余运算大家都很熟悉,但是对于负数、实数的取余运算,确实给人很新鲜的感觉。于是我对此进行了一些探索。我发现,这里面还是颇有一点可以探索的东西的。
探究...
分类:
其他好文 时间:
2015-01-26 15:12:40
阅读次数:
182
Union Syntaxselect_statement UNION ALL select_statement UNION ALL select_statement ...UNION is used to combine the result from multiple SELECT stateme...
分类:
其他好文 时间:
2015-01-26 13:28:53
阅读次数:
142
EXPLAIN SyntaxEXPLAIN SyntaxHive provides anEXPLAINcommand that shows the execution plan for a query. The syntax for this statement is as follows:EXPL...
分类:
其他好文 时间:
2015-01-26 13:16:50
阅读次数:
294
until循环 条件不满足进循环,条件满足时退出。 untilCONDITION;do statement ... done 例如: 1.写一个脚本,将输入的内容小写改成大写。 #!/bin/bash read-p"inputsometing"STR until[$STR==‘quit‘];do echo$STR|tr‘a-z‘‘A-Z‘ done 2.写一个脚本,每隔5秒检测..
分类:
其他好文 时间:
2015-01-25 19:43:00
阅读次数:
185
JDBC提供了数据库batch处理的能力,在数据大批量操作(新增、删除等)的情况下能够大幅度提升系统的性能。我曾经接触的一个项目,在没有採用batch处理时,删除5万条数据大概要半个小时左右,后来对系统进行改造,採用了batch处理的方式,删除5万条数据基本上不会超过1分钟。看一段JDBC代码://...
分类:
数据库 时间:
2015-01-25 12:32:49
阅读次数:
206
操作 SQL 语句Statement, PreparedStatement, CallableStatement一旦建立好连接, 就可以与数据库交互. JDBC 中Statement,PreparedStatement和CallableStatement提供了SQL操作的相关API. 其中Calla...
分类:
数据库 时间:
2015-01-25 12:28:20
阅读次数:
308