- 博客(7)
- 收藏
- 关注
转载 mysql中or和in的效率问题
原文地址:http://blog.chinaunix.net/uid-20639775-id-3416737.html 《mysql数据库开发的36条军规》的文章,里面提到了or和in的效率问题,文中提到or的效率为O(n),而in的效率为O(logn), 当n越大的时候效率相差越明显。 第一步,创建测试表 第二步:分三中情况进行测试,分别是: 第一种情况:in和or所在列为主键的情形。 第...
2019-04-08 15:49:17
212
原创 Windows下在安装Redis
1.GitHub下载Redis的zip文件,区分64位和32位 下载地址:https://github.com/MSOpenTech/redis/releases 2.解压文件 3.打开cmd黑窗口,切换目录到redis解压的目录下 4.启动服务,命令为redis-server.exe redis.windows.conf 5.打开另一个黑窗口,切换到redis解压目录下,输入命令打开客...
2019-01-25 16:15:48
180
转载 hibernate中openSession()跟getCurrentSession()方法之间的区别
Hibernate openSession() 和 getCurrentSession的区别 getHiberanteTemplate 、getCurrentSession和OpenSession 采用getCurrentSession()创建的Session会绑定到当前的线程中去、而采用OpenSession()则不会。 采用getCurrentSession()创建的Session...
2019-01-09 11:42:36
435
2
转载 表达式计算 JexlEngine
import org.apache.commons.jexl2.JexlContext; import org.apache.commons.jexl2.JexlEngine; import org.apache.commons.jexl2.MapContext; import org.apache.commons.jexl2.UnifiedJEXL.Expression; //表...
2018-11-21 18:26:16
5476
转载 tomcat跨域问题解决
先下载CORS对应的Jar: 1. cors-filter-2.6.jar https://mvnrepository.com/artifact/com.thetransactioncompany/cors-filter/2.6 2. java-property-utils-1.9.1.jar https://mvnrepository.com/artifact/com.thetra...
2018-11-06 11:43:44
905
1
转载 mysql ERROR 1045 (28000): 错误解决办法(转载,我的问题被解决)
ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO)ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: YES)windows下,以上两个错误的解决方法1.找到配置文件my.ini ...
2018-05-17 15:32:06
684
转载 java中的数据库jdbc的连接字符串及其驱动类
mysql: driverClass:com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/dbNameSql Server driverClass:com.microsoft.sqlserver.jdbc.SQLServerDriver url:jdbc:sqlserver://localhost:1433; databas...
2018-03-16 15:10:10
212
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人