USE flowershopdb--全球唯一标识符(GUID UUID)SELECT NEWID()--增删改查--INSERT [INTO] [列名] VALUES INSERT tb_user VALUES('haha','123')INSERT INTO tb_user VALUES('...
分类:
数据库 时间:
2015-02-08 16:44:54
阅读次数:
268
如需转载请标明出处:http://blog.csdn.net/itas109
QQ技术交流群:129518033
Reference:http://stackoverflow.com/questions/8093163/min-max-values-of-a-listdouble
现在有一个如下的数组,求其最大值和最小值
List values = new ArrayLis...
分类:
编程语言 时间:
2015-02-08 11:36:12
阅读次数:
254
插入数据 1 语法 INSERT [INTO] [(列名)] VALUES 其中:“[]”代表可选的;“”代表必需的。如果有多个列名和多个列值需要用逗号隔开。 2 实例 INSERT INTO Authors (AuthorName,Sex,Age,Email,TelPhone,City)
VALU...
分类:
数据库 时间:
2015-02-07 15:53:54
阅读次数:
196
declare @code varchar(20), @cs varchar(20),@zc varchar(20)set @cs='('+@cs+'*'+@zc+')'print '字符'+@csinsert into TESTER2 values(@cs,@zc,@cs)declare @cod...
分类:
数据库 时间:
2015-02-07 11:31:22
阅读次数:
272
SQL的使用莫非就是插入,删除,更新,查询。
首先要了解语法
例如有个表格table 里面有a和b两个列
insert into table(a,b) values(1,2)
update table set a=1 where a=2
delete from table where a=1
delete from table
select a,b from table where...
分类:
移动开发 时间:
2015-02-06 16:53:44
阅读次数:
158
#include #include #include /** some good values for block size and count*/#define BLOCK_SIZE 8192#define BLOCK_COUNT 20/** function prototypes*/ stati...
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
解题思路:后序遍历的过程是首先左-右-父,首先...
分类:
其他好文 时间:
2015-02-06 13:15:22
阅读次数:
109
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,3,2].
解题思路:简单的中序非递归遍历,用栈实现;
#i...
分类:
其他好文 时间:
2015-02-06 13:12:19
阅读次数:
107
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
解题思路:先序遍历较为简单,直接按顺序存栈即可....
分类:
其他好文 时间:
2015-02-06 13:12:15
阅读次数:
121
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2015-02-05 23:15:41
阅读次数:
191