用法: explain??select?*?from?ems_expense_feedback??where?expenseId=333 rows列 表示 sql执行时检索次数,越小越好 根据上面的结果再适当加上索引 1.添加PRIMARY KEY(主键索引)? mysql>ALTER TABL...
分类:
数据库 时间:
2015-11-12 18:27:42
阅读次数:
255
sql批量插入删除批量删除:DELETE FROM MyTable WHERE ID IN (1,2);批量插入:INSERT INTO MyTable(ID,NAME) VALUES(1,'123');INSERT INTO MyTable(ID,NAME) VALUES(2,'456');INS...
分类:
数据库 时间:
2015-11-12 18:09:05
阅读次数:
264
1、加载dllAssembly ass =Assembly.LoadFile(dllPath);2、取public的方法TypeType[] types = ass.GetExportedTypes();3、继承接口Ixxtypes = type.Where(p=>typeof(Ixx).IsAss...
分类:
其他好文 时间:
2015-11-12 17:40:02
阅读次数:
115
Author: Dean Hutchinson, Quality Assurance Analyst, OpenText Memory- Heap and PermGen After searching for answers on where to set memory options for the JVM, specifically for AppWorks on Tomcat, I ...
分类:
其他好文 时间:
2015-11-12 16:19:26
阅读次数:
493
最近eclipse出了个问题,感觉莫名其妙,就是打开eclipse在载入时,突然闪一下就退出了,也不报错。经过网上搜索资料,总结了以下几个解决此问题的方法: 1、通过在命令行中输入“where java”,找到除jdk目录下的所有java相关程序,直接删掉(一般会在C:\WINDOWS\sys...
分类:
系统相关 时间:
2015-11-12 11:33:41
阅读次数:
338
方法定义: private static T GetValueByKey(string key) where T : IConvertible { T localVal=default(T); string strType = ...
分类:
其他好文 时间:
2015-11-12 09:57:03
阅读次数:
759
题目:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in...
分类:
其他好文 时间:
2015-11-12 09:56:14
阅读次数:
288
一. 题目简述,这是LeetCode上的一道题,是求直方图最大面积,原题题干如下:Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find th...
分类:
其他好文 时间:
2015-11-12 01:11:26
阅读次数:
218
本文主要介绍OGG中一些过滤或计算函数的用法,以及sqlexec的基本用法 SQLPREDICATE 在使用OGG初始化时,可以添加此参数到extract中,用于选择符合条件的记录,下面是OGG官方文档中的描述 : “在用OGG初始化数据时,使用SQLPredicate是比where或filter更...
分类:
数据库 时间:
2015-11-11 23:53:14
阅读次数:
301
ICP简介Index Condition Pushdown (ICP) is an optimization for the case where MySQL retrieves rows from a table using an index. Without ICP, the storage e...
分类:
数据库 时间:
2015-11-11 23:48:08
阅读次数:
329