Oracle中有sequence的功能,SQL
Server类似的功能使用Identity列实现,但是有很大的局限性。在2012中,微软终于增加了sequence 对象,功能和性能都有了很大的提高。sql
server 2012 序列配置属性1. 查询序列的下一个值select next value...
分类:
数据库 时间:
2014-05-08 19:35:44
阅读次数:
446
con.execute "CREATE tblImg (lngId COUNTER PRIMARY
KEY, binImg IMAGE)"set
ads=createobject("adodb.stream")ads.type=1ads.mode=3ads.openads.loadFromFile ...
分类:
数据库 时间:
2014-05-08 19:26:02
阅读次数:
376
一个用来分割字符串的函数:
strtok
char * strtok ( char * str, const char * delimiters );
Split string into tokens
A sequence of calls to this function split str into tokens, which are sequences of co...
分类:
其他好文 时间:
2014-05-07 16:18:12
阅读次数:
273
本文出自:http://blog.csdn.net/svitter
原题:http://poj.org/problem?id=1141
题意:输出添加括号最少,并且使其匹配的串。
题解: dp [ i ] [ j ] 表示添加括号的个数, pos[ i][ j ] 表示i, j中哪个位置分开,使得两部分分别匹配。
初始值置dp [ i ] [ i ] = 1; 如果只有一个括号,...
分类:
其他好文 时间:
2014-05-07 15:17:21
阅读次数:
367
联合索引又叫复合索引。对于复合索引: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
配置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
Problem:The sequence of triangle numbers is
generated by adding the natural numbers. So the 7thtriangle number would be 1 +
2 + 3 + 4 + 5 + 6 + 7 = 28...
分类:
其他好文 时间:
2014-05-07 00:28:01
阅读次数:
365
通过实现父类的方法
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