新建立了一个replicat set,登录到primary里,show dbs一看吓一跳local数据库竟然占用了80多G的空间[root@wxlab31 bin]# ./mongo --host 10.1.1.31 --port 27017MongoDB shell version: 2.4.6c...
分类:
数据库 时间:
2014-07-07 11:10:21
阅读次数:
294
/********************************************************************** Author : Samson* Date : 06/18/2014* Test platform:* Mint 15* GNU bash, version...
分类:
其他好文 时间:
2014-07-07 10:01:11
阅读次数:
186
row_number() OVER (PARTITION BY COL1 ORDER BY COL2)
--表示根据COL1分组,在分组内部根据 COL2排序,而此函数返回的值就表示每组内部排序后的顺序编号(组内连续的唯一的)
例子一: create table student (id int ,classes int ,score int);
insert into student val...
分类:
其他好文 时间:
2014-07-03 18:33:50
阅读次数:
213
选择排序
定义:依次选择最小的元素放在相应的位置上
特点:比较次数是 N(N-1)/2 交换次数是 N (each exchange puts an item into its ?nal position, so the number of exchanges is N. Thus, the running time is dominated by the number of
com...
分类:
其他好文 时间:
2014-07-03 15:44:01
阅读次数:
259
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:
其他好文 时间:
2014-07-03 13:05:28
阅读次数:
210
DECLARE@dtdatetimeSET@dt=GETDATE()DECLARE@numberintSET@number=3--1.指定日期该年的第一天或最后一天--A. 年的第一天SELECTCONVERT(char(5),@dt,120)+'1-1'--B. 年的最后一天SELECTCONVE...
分类:
其他好文 时间:
2014-07-03 12:18:49
阅读次数:
201
IE 6下expected identifier,string or number(缺少标示符、字符串或数字)其实就是多了一个逗号,之前没发现
分类:
编程语言 时间:
2014-07-02 17:49:13
阅读次数:
206
假设我们有许多个版本,版本号分别是1-10如果我们在7这里选择revert to this version那么7之后的8,9,10的操作都会被消除如果在7选择revert changes from this version那么7版本的修改将会被消除如果同时选择7,8revert changes fr...
分类:
其他好文 时间:
2014-07-02 17:06:29
阅读次数:
253
功能说明:显示与设定硬件时钟。语法:hwclock[--adjust][--debug][--directisa][--hctosys][--show][--systohc][--test][--utc][--version][--set--date=<日期与时间>]补充说明:在Linux中有硬件时钟与系统时钟等两种时钟。硬件时钟是指主机板上的时钟设备,也就是通常..
分类:
系统相关 时间:
2014-07-02 15:50:02
阅读次数:
296
Windows Registry Editor Version 5.00[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\OracleOraDb11g_home1TNSListener][-HKEY_LOCAL_MACHINE\SYSTEM...
分类:
数据库 时间:
2014-07-02 15:09:08
阅读次数:
273