主键 (Primary Key)
中的每一笔资料都是表格中的唯一值。换言之,它是用来独一无二地确认一个表格中的每一行资料。主键可以是原本资料内的一个栏位,或是一个人造栏位
(与原本资料没有关系的栏位)。主键可以包含一或多个栏位。当主键包含多个栏位时,称为组合键 (Composite Key)。主键可...
分类:
其他好文 时间:
2014-05-07 14:08:41
阅读次数:
292
解决方法: 执行以下命令: rndc-confgen -r /dev/urandom
-a然后再重启DNS服务: service named start 服务正常
分类:
其他好文 时间:
2014-05-07 09:53:40
阅读次数:
276
LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value
(will always be posi...
分类:
其他好文 时间:
2014-05-07 07:16:21
阅读次数:
316
图灵机器人,功能很强大,可用于聊天、查询等多个领域
图灵机器人官网:http://www.wendacloud.com/
api地址:http://www.wendacloud.com/openapi/api?key=KEY&info=你好...
c++封装的用来存储key value pair的内存池类...
分类:
编程语言 时间:
2014-05-07 05:31:02
阅读次数:
450
eshell是emacs shell的简称,是emacs自带的shell.开始设置的时候还在想是否要找到它的key map (eshell-mode-map?).
原来它是采用hook设置,如下所示
(add-hook 'eshell-mode-hook
(lambda ()
(local-set-key (kbd "C-j") 'switch-to...
分类:
其他好文 时间:
2014-05-07 05:25:39
阅读次数:
253
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
通过实现父类的方法
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