首先看看表结构!
customer表:
create table customers
(
ID bigint not null primary key auto_increment,
userName varchar(20)
);
Order表:
create table orders
(
ID bigint not null prim...
分类:
Web程序 时间:
2015-01-19 17:18:11
阅读次数:
597
Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->5->NULL.Note:Given m, n satisfy the following condi...
分类:
其他好文 时间:
2015-01-19 15:54:39
阅读次数:
141
在sqlserver(应该说在目前所有数据库产品)中创建一个资源如表,视图,存储过程中都要判断与创建的资源是否已经存在在sqlserver中一般可通过查询sys.objects系统表来得知结果,不过可以有更方便的方法如下: if object_id('tb_table') is not null.....
分类:
数据库 时间:
2015-01-19 12:39:01
阅读次数:
286
这是MSDN中的说明:
异常
条件
CookieException
name 为 null 或空字符串 ("")。
- 或 -
name 包含未经授权的字符。 使用以下字符之一将会导致异常:
等号 (=)
分号 (;)
逗号 (,)
换行符 (\n)
回车符 (\r)
制...
在表ALL_CONSTRAINTS中约束类型CONSTRAINT_TYPE:
C (check constraint on a table)--约束,如not null,check
P (primary key)--主键
U (unique key) --唯一键约束
R (referential integrity)--外键
--下面两个是作用于视图
V (with check opt...
分类:
数据库 时间:
2015-01-19 10:56:56
阅读次数:
201
二叉搜索树的删除:
在删除之前需要从树中查找到这个节点,然后再针对情况来判断如何删除。
分为三种情况,首先是此节点没有孩子节点,此节点有一个孩子节点,此节点有两个孩子节点
void Delete(BinTree*& root,int value)
{
BinTree* delnode= NULL;
if(root == NULL)
return ;
BinTree* temp ...
分类:
其他好文 时间:
2015-01-19 10:52:53
阅读次数:
121
[TestMethod] public void NodeTest() { datanode d = new datanode() { name = "zbw911", children = new List ...
分类:
Web程序 时间:
2015-01-19 10:39:55
阅读次数:
136
生活中我们经常会遇到这样的问题,对话如下。路人:“同学,请问湘大图书馆怎么走啊?” 学生:“前面路口左转,然后直走,第三个路口左转,之后再右转就到了。”这里就涉及到创建二叉树来解决此类问题的方法了。 指路法定位结点 从根节点开始:结点1的位置: { NULL }结点2的位置:{ 左 }结点3的...
分类:
其他好文 时间:
2015-01-19 10:38:05
阅读次数:
315
??
字段属性设置
not null 不为空
auto_increment 设定int类型字段的值可以“自增长”,即其值无需“写入”,而会自动获得并增加
注:此属性必须随同 primary key 或 unique key 一起使用。
[primary] key: 设定为主键。是唯一键“加强”:也不能重复并且不能使用null,并且可以作为确定任意一行数据的“关键值”
unique ...
分类:
其他好文 时间:
2015-01-19 09:19:44
阅读次数:
161
需要明白constantBuffer传入数据到shader的正确使用::cb1.vOutputColor = XMFLOAT4(0, 0, 0, 0); g_pImmediateContext->UpdateSubresource( g_pConstantBuffer, 0, NULL, &cb1,...
分类:
其他好文 时间:
2015-01-19 08:02:42
阅读次数:
1039