联合索引又叫复合索引。对于复合索引:Mysql从左到右的使用索引中的字段,一个查询可以只使用索引中的一部份,但只能是最左侧部分。例如索引是key index
(a,b,c)。 可以支持a | a,b| a,b,c 3种组合进行查找,但不支持 b,c进行查找 .当最左侧字段是常量引用时,索引就十分有效...
分类:
数据库 时间:
2014-05-07 14:27:50
阅读次数:
386
主键 (Primary Key)
中的每一笔资料都是表格中的唯一值。换言之,它是用来独一无二地确认一个表格中的每一行资料。主键可以是原本资料内的一个栏位,或是一个人造栏位
(与原本资料没有关系的栏位)。主键可以包含一或多个栏位。当主键包含多个栏位时,称为组合键 (Composite Key)。主键可...
分类:
其他好文 时间:
2014-05-07 14:08:41
阅读次数:
292
#xml
api:http://www.cnblogs.com/lhj588/archive/2011/11/09/2242483.html#dictionary
operations: key in dict....from xml.dom import minidom, Nodedoc = mi...
分类:
编程语言 时间:
2014-05-07 11:01:12
阅读次数:
602
c++封装的用来存储key value pair的内存池类...
分类:
编程语言 时间:
2014-05-07 05:31:02
阅读次数:
450
书名:《黑客与画家》
作者:Paul Graham 阮一峰 [译]
出版社:人民邮电出版社
推荐理由:跟随硅谷创业之父,走进黑客的世界
作者介绍:
Paul Graham,Lisp专家,世界上首个互联网应用程序Viaweb开发人之一。创建的Viaweb公司后被雅虎收购,改名为Yahoo!Store。2005年创办YCombinator,开创了天使投资新模式,被《福布斯》杂...
分类:
其他好文 时间:
2014-05-07 04:54:22
阅读次数:
337
Redis是一个包含了很多Key-Value对的大字典,这个字典支持的Value非常丰富,可以为字符串、哈希表、列表、集合和有序集,基于这些类型丰富的value,扩展出了功能强大的操作,例如hmset、lpush、sadd等...
分类:
其他好文 时间:
2014-05-07 04:01:53
阅读次数:
302
配置rndc.conf 命令:rndc-confgen >
/etc/bind/rndc.conf自动生成rndc.conf,内容如下:# Start of rndc.conf key "rndc-key" {
algorithm hmac-md5; secret "oYV+NSAXam...
分类:
其他好文 时间:
2014-05-07 01:45:13
阅读次数:
249
题目原文:
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,Given n = 3, there are a total of 5 unique BST's.
题目理解...
分类:
其他好文 时间:
2014-05-06 22:15:57
阅读次数:
415
通过实现父类的方法
protected void onSaveInstanceState(Bundle outState)
{
super.onSaveInstanceState(outState);
String str = editText.getText().toString();
outState.putString("key", "message");
}
这样就保存到了B...
分类:
其他好文 时间:
2014-05-06 21:46:12
阅读次数:
405
--oracle实现自增id
--创建一张T_StudentInfo表
create table T_StudentInfo
(
"id" integer not null primary key,
xsName nvarchar2(120) not null,
xsAge integer not null,
Mobile varchar(...
分类:
数据库 时间:
2014-05-06 15:04:22
阅读次数:
525