我们在做多个字段模糊查询时,是不是觉得非常麻烦?比如我要模糊查询某表多个字段存在某数据时,如下select * from table where a like '%key%' or b like '%key%'orc like '%key%'..........上面的语句不但长,而且写起来好麻烦。我...
分类:
其他好文 时间:
2014-07-15 10:09:51
阅读次数:
231
Clustered and Secondary Indexessecondary index A type of InnoDBindexthat represents a subset of table columns. An InnoDB table can have zero, one, or....
分类:
其他好文 时间:
2014-07-14 22:10:15
阅读次数:
351
概念:
散列表(Hash table,也叫哈希表),是根据关键码值(Key value)而直接进行访问的数据结构。也就是说,它通过把关键码值映射到表中一个位置来访问记录,以加快查找的速度。这个映射函数叫做散列函数,存放记录的数组叫做散列表。给定表M,存在函数f(key),对任意给定的关键字值key,代入函数后若能得到包含该关键字的记录在表中的地址,则称表M为哈希(Hash)表,函数f(key)为...
分类:
其他好文 时间:
2014-07-14 20:33:24
阅读次数:
303
最近发现POSTGRESQL的一张表(下面统称为test表)达到67G大小,不得不进行重新分区,下面记录一下步骤:前言、查看数据表结构(表结构肯定是虚构的)CREATE TABLE test( id integer NOT NULL DEFAULT , logday character vary.....
分类:
数据库 时间:
2014-07-14 19:23:11
阅读次数:
305
$("#result").find("tr").each(function () { $(this).find("td").each(function () { if ($(this).text().indexOf("惠") > ...
分类:
Web程序 时间:
2014-07-14 19:04:17
阅读次数:
276
1.atomicity 原子性 数据库中的执行要么都完成,要么失败。2.consistency 一致性 通过一些约束(主键,外键,唯一性,check等)来保证数据跟业务一致。3.isolation 隔离性 事务执行不相互干扰,一个事务不能看到另一个事务运行时的某一刻的数据。 隔离性的等级分为:rea...
分类:
其他好文 时间:
2014-07-14 19:03:05
阅读次数:
223
pairs
Returns three values: the next function, the table t, and nil, so that the
construction
for k,v in pairs(t) do body end
will iterate over all key–value pairs of table t.
See functi...
分类:
其他好文 时间:
2014-07-14 18:39:58
阅读次数:
317
在oracle中,标量子查询和自定义函数用的比较多,而且开发人员也比较常用,但经常会引起性能问题,特别表比较大的时候。下面的案例将教大家彻底搞懂标量子查询:
SQL> create table a (id int,name varchar2(10));
Table created.
SQL> create table b (id int,name varchar2(10));...
分类:
数据库 时间:
2014-07-14 18:38:36
阅读次数:
510
android.permission.ACCESS_CHECKIN_PROPERTIES允许读写访问"properties”表在checkin数据库中,改值可以修改上传( Allows read/write access to the “properties” table in the checki...
分类:
移动开发 时间:
2014-07-14 16:00:04
阅读次数:
263