作者:gw 装载请注明出处--------------------------------------一.插入数据 (1)插入单个元组INSERT INTO [([,…)]VALUES ([,]…);(2)插入子查询结果INSERT INTO [([,…)]子查询;----------------....
分类:
数据库 时间:
2014-11-28 19:57:42
阅读次数:
257
学习Android4.0的ActionBar,遇到一个特别恶心的问题,必须记下来。我开始新建的2.2的工程,后来想测试ActionBar,看到文档说是11以后才能用,我就直接把项目改成了min:14,target:17。这也是隐患的开始。在程序里面调用下面这句获取actionBar,但是返回的总是null的,不知道为..
分类:
移动开发 时间:
2014-11-28 18:30:23
阅读次数:
169
首先在frameworks\base\packages\SettingsProvider\res\values\defaults.xml中设置def_screen_off_timeout为-1,即
-1
然后修改alps\packages\apps\Settings\res\values\arrays.xml:
15 seconds
30 sec...
分类:
移动开发 时间:
2014-11-28 18:19:22
阅读次数:
195
ref: Calculate Field examplesEntering values with the keyboard is not the only way you can edit values in a table. In some cases, you might want to pe...
分类:
编程语言 时间:
2014-11-28 18:03:40
阅读次数:
335
当values都是整形时,按照Hash的Values排序:h = {'a'=>1,'b'=>2,'c'=>5,'d'=>4}h.sort {|a,b| a[1]b[1]}输出:[["a", 1], ["b", 2], ["d", 4], ["c", 5]]当我们需要对Hash进行排序时,不能像数组那...
分类:
编程语言 时间:
2014-11-28 17:51:59
阅读次数:
193
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
这个题目比较简单,借助容器queue即可完成二叉树的层序遍历。我的C++实现代码如下:
vector > levelOrder(TreeNode *...
分类:
其他好文 时间:
2014-11-28 10:22:22
阅读次数:
206
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
这个简单的问题可以这样解决:利用LeetCode[Tree]: Binary Tree Level...
分类:
其他好文 时间:
2014-11-28 10:15:15
阅读次数:
227
题目:Binay Tree Level Order TraversalGiven a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level...
分类:
其他好文 时间:
2014-11-27 17:56:43
阅读次数:
110
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree {3,9,20,#,#,15,7},
...
分类:
其他好文 时间:
2014-11-27 16:14:23
阅读次数:
184
Insert是T-sql中常用语句,Insert INTO table(field1,field2,...) values(value1,value2,...)这种形式的在应用程序开发中必不可少。但我们在开发、测试过程中,经常会遇到需要表复制的情况,如将一个table1的数据的部分字段复制到tab....
分类:
其他好文 时间:
2014-11-27 14:17:00
阅读次数:
225