开始: start transaction; # 一定要有这个 ‘;’ 号。注意: MYSQL 用的是快照隔离、就是说一个连接在修改的时候别的连接还是可以查询的。 例子: create table T1(X int); insert into T1(X) values(100)...
分类:
数据库 时间:
2014-10-09 19:16:37
阅读次数:
162
什么是CSV文件CSV是 Comma-separated values (逗号分隔值)的首字母缩写,它通常是以逗号且不仅限于逗号分隔各个值,我们都叫他CSV。看下面的例子:China, Shanghai, Pudong, Zhang San, 200000, 1234567BMW; GER; 300...
分类:
编程语言 时间:
2014-10-09 15:09:43
阅读次数:
189
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
编程语言 时间:
2014-10-09 14:37:53
阅读次数:
215
//最常规的一种遍历方法,最常规就是最常用的,虽然不复杂,但很重要,这是我们最熟悉的,就不多说了!! public static void work(Map map) { Collection c = map.values(); Iterator it = c....
分类:
编程语言 时间:
2014-10-09 14:32:53
阅读次数:
174
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:
其他好文 时间:
2014-10-09 13:16:43
阅读次数:
179
数组内部制造控制函数current():取得数组当前位置的值key():取得数组当前位置的索引值next():将数组指针向后移一位prev():将数组指针向前移动一位end():将数组指针移动到最后一个元素reset():将数组指针移动到第一个元素键值操作函数array_values():获得数组所有元素的键值,并..
分类:
Web程序 时间:
2014-10-09 02:39:08
阅读次数:
235
在自定义Dialog时显示的界面中老是有黑色的边框,下面就介绍使用style去除黑色边框方法。
首先在values/styles定义自定义样式:
@null
@drawable/actionbar_item_background
true
true
@null
#FFF
@d...
分类:
移动开发 时间:
2014-10-09 01:46:19
阅读次数:
226
1 public String intToRoman(int num) { 2 int[] values={1000,900,500,400,100,90,50,40,10,9,5,4,1}; 3 String[] roman={"M","CM","D","CD","C...
分类:
编程语言 时间:
2014-10-09 01:25:07
阅读次数:
165
create function f_myWord(@s varchar(50))returns varchar(50) asbegindeclare @i intset @i=1while @i=1 BEGIN INSERT @TEMP_Table VALUES(left(@Sour...
分类:
数据库 时间:
2014-10-09 01:00:07
阅读次数:
342
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, reorder it t...
分类:
其他好文 时间:
2014-10-08 15:01:15
阅读次数:
159