// demo1.cpp : 定义控制台应用程序的入口点。//通过此例程了解重载#include
"stdafx.h"#include using namespace std;class CMath{public:CMath(float
a):m_a(a){}~CMath(){}double Add...
分类:
编程语言 时间:
2014-05-17 13:24:50
阅读次数:
343
今天要把测试环境DB的数据更新成最新Production环境的数据,期间发生了一些问题:1.首先从正式环境exp出想要用户的dmp档2.drop掉测试环境底下相应用户3.create测试环境底下相应用户4.imp
正式环境导出的dmp档5.在测试环境底下explain plan sql时报:ORA-...
分类:
其他好文 时间:
2014-05-17 00:26:59
阅读次数:
263
You are given two linked lists representing two
non-negative numbers. The digits are stored in reverse order and each of their
nodes contain a single ...
分类:
其他好文 时间:
2014-05-16 23:18:16
阅读次数:
360
运行单独的节点意味着有将会面对单点故障——没有冗余的数据备份。幸运的是我们可以启动另外的node来保护我们的数据。一个新的node,只要他的cluster
name和已经存在的cluster节点的名称相同,就会自动加入这个cluster,并且能和其他的node进行通信。增加第二个node之后,clu...
分类:
其他好文 时间:
2014-05-16 19:11:21
阅读次数:
341
public class SetTest { public static void
main(String[] args) { Set set = new HashSet(); List list = new ArrayList();
list.add...
分类:
其他好文 时间:
2014-05-16 07:18:35
阅读次数:
263
--创建表create table employee( userId number not
null, userName varchar2(50), pwd varchar2(50), email varchar2(100), clazz
number);--向表中插入数据INSERT INTO e...
分类:
其他好文 时间:
2014-05-16 06:53:08
阅读次数:
331
在大并发的场合,当cache失效时,大量并发同时取不到cache,会同一瞬间去访问db并回设cache,可能会给系统带来潜在的超负荷风险。解决方法方法一在load
db之前先add一个mutex key, mutex key add成功之后再去做加载db, 如果add失败则sleep之后重试读取原c...
分类:
其他好文 时间:
2014-05-16 05:51:05
阅读次数:
343
insert ,update 以及merge 的使用例子
分类:
其他好文 时间:
2014-05-16 05:03:57
阅读次数:
307
/proc/sys/vm/drop_caches(since Linux 2.6.16)Writing
to this file causes the kernel to drop clean caches,dentries and inodes from
memory, causing that ...
分类:
系统相关 时间:
2014-05-14 08:54:16
阅读次数:
331
定义一个存储过程,用到游标,从一个表中取值,插入到另外一个表中。drop procedure
if exists search_test;create procedure search_test(in id int,out out_min_id
varchar(200))begindeclare f...
分类:
数据库 时间:
2014-05-14 07:41:31
阅读次数:
361