foreign key references 除了关联外键,还可以关联 候选键(unique)需求table1 中的 status int 类型 ,表示状态 ,0 未启动 ,1 已启动,2 已完成table2 中 id int identity(1,1) primary key ,statusTyp...
分类:
其他好文 时间:
2014-06-29 06:11:54
阅读次数:
235
摘要MapReduce是一个编程模型,和处理,产生大数据集的相关实现.用户指定一个map函数处理一个key/value对,从而产生中间的key/value对集.然后再指定一个reduce函数合并所有的具有相同中间key的中间value.下面将列举许多可以用这个模型来表示的现实世界的工作.以这种方式写...
分类:
其他好文 时间:
2014-06-29 00:17:14
阅读次数:
369
错误原文:"错误 1 无法导入以下密钥文件: SamplePlugin.pfx。该密钥文件可能受密码保护。若要更正此问题,请尝试再次导入证书,或手动将证书安装到具有以下密钥容器名称的强名称 CSP: VS_KEY_AB11B965483B8730SamplePlugin"要解决此问题:打开Visua...
分类:
其他好文 时间:
2014-06-18 09:48:57
阅读次数:
138
class DictSerializable(object):
def as_dict(self,*args):
result = OrderedDict()
keys=args or self.__mapper__.c.keys()
for key in keys:
if hasattr(self,key)...
分类:
编程语言 时间:
2014-06-18 06:25:55
阅读次数:
596
spring-mybatis-data-common-2.0新增分表机制,在1.0基础上做了部分调整.基于机架展示分库应用数据库分表实力创建create table tb_example_1( id bigint primary key auto_increment , eId bigint, .....
分类:
编程语言 时间:
2014-06-18 00:07:38
阅读次数:
317
一 事件机制
每一个任务都会有很多种事件,包括系统消息、任务事件等等。
事件的触发启动
函数1:启动一个定时器、定时delaytime时间、之后触发TaskID的event事件.延时时间以ms为单位。
osal_start_timerEx( TaskID, event,
delaytime);
函数2:置 tasksEvents[]数组的事件标志位为1、系统轮询这个数组确定是否触...
分类:
其他好文 时间:
2014-06-17 22:49:48
阅读次数:
334
可以通过哈希表实现高效的集合操作。
接口
一个集合对象可以包含了以下接口:
public interface Set> {
public void add(Key key);
public boolean contains(Key key);
public void remove(Key key);
public int siz...
分类:
其他好文 时间:
2014-06-17 22:28:05
阅读次数:
288
Behavioral things
are the dynamic parts of UML models. These are the verbs of a model, representing behavior over time and space. In all, there are three primary kinds of behavioral things.
行...
分类:
其他好文 时间:
2014-06-17 21:47:37
阅读次数:
315
进入linux系统root>/usr/bin/mysql-urootmysql>showdatabases;#查看数据库mysql>usetesttable;#testtable为所要查看的库,应用数据库mysql>showtables;#查看所有表mysql>descabc_table#查看表结构mysql>createtableabc(>idintnotnullprimarykey,>`type..
分类:
数据库 时间:
2014-06-17 18:17:46
阅读次数:
233
具体代码
###############################
#
# Funciton: micro_template_compile
#
# Parameter:
# [1] => template :String
# [2..n] => values for placeholder as key=value
#
# Example:
# <- micro_tem...
分类:
其他好文 时间:
2014-06-17 16:23:47
阅读次数:
172