以Oracle为例吧
Statement为一条Sql语句生成执行计划,
如果要执行两条sql语句
select colume from table where colume=1;
select colume from table where colume=2;
会生成两个执行计划
一千个查询就生成一千个执行计划!
PreparedStatement用于使用绑定变量重用执行计划
...
分类:
数据库 时间:
2014-05-22 13:44:55
阅读次数:
380
1、定义 public class EntBase:where T: new() { public
List GetListDemo() { var lst = new List(); for (int i = 1; i...
分类:
其他好文 时间:
2014-05-22 03:35:38
阅读次数:
166
比较运算符> = = 大于、小于、大于(小于)等于、不等于BETWEEN
...AND...显示在某一区间的值IN(set)显示在in列表中的值,例:in(100,200)LIKE ‘张pattern’模糊查询 _ %IS
NULL判断是否为空逻辑运算符and &&多个条件同时成立or ||多...
分类:
其他好文 时间:
2014-05-22 00:51:48
阅读次数:
658
I think everyone who is interested in ecommerce
development get familiar with Magento earlier or later. It’s a very popular
platform, where a lot of m...
分类:
其他好文 时间:
2014-05-22 00:35:05
阅读次数:
555
--第一种分页(TOP方式)--select * from T_Sys_User where
User_Id in (select top 10 User_Id from T_Sys_User where User_Id not in(select
top (10*0) User_Id from T...
分类:
数据库 时间:
2014-05-21 22:44:21
阅读次数:
485
v2.0更新内容:
1.支持Mybatis缓存,count和分页同时支持(二者同步)
2.修改拦截器签名,拦截Executor,签名如下:
@Intercepts(@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class}))
3.将Page类移到外面,方便调用...
分类:
其他好文 时间:
2014-05-21 16:24:50
阅读次数:
395
v2.0更新内容:
1.支持Mybatis缓存,count和分页同时支持(二者同步)
2.修改拦截器签名,拦截Executor,签名如下:
@Intercepts(@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class}))
3.将Page类移到外面,方便调用...
分类:
其他好文 时间:
2014-05-21 14:40:56
阅读次数:
408
【题目】
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6.
The above elevation map is represente...
分类:
移动开发 时间:
2014-05-21 06:44:38
阅读次数:
359
File error 3219 occurs on Microsoft SQL servers
where you are attempting to improperly restore a database with the "Restore
Files and Filegroups" comm...
分类:
数据库 时间:
2014-05-21 03:36:02
阅读次数:
427
mybatisconfigure:http://mybatis.github.io/mybatis-3/zh/configuration.htmlcorba接口问题:运行时间越久线程越多。原因:资源关闭方法错误。keyword:SelectorThread https://community.jboss.org/thread/49343?tstart=0解决:org.omg.CORBA调用 shutdown(false)后..
分类:
编程语言 时间:
2014-05-21 00:16:40
阅读次数:
394