准备: create table t(x int primary key,y int unique,z int); insert into t(x,y,z) values(1,1,1),(2,2,2),(3,3,3),(4,4,4),(5,5,5),(6,6,6),(7,7,7),(8,8,8).....
分类:
数据库 时间:
2015-04-03 10:54:25
阅读次数:
183
第一步: 建表 create table t1(x int, y int); create table t2(x int, y int); go insert into t1(x,y) values(1,2),(2,3),(3,4),(4,5),(5,6); insert into t2...
分类:
数据库 时间:
2015-04-03 01:24:17
阅读次数:
167
题目:
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].Note: Recursive solution is trivial,...
分类:
其他好文 时间:
2015-04-02 22:39:03
阅读次数:
180
题目:
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].Note: Recursive solution is trivial, c...
分类:
其他好文 时间:
2015-04-02 20:53:56
阅读次数:
141
从网上找到的方法,不过很不错,记录下来,也算是分享下~~有一个表,city,有列:cityID,cityName;将此表中所有数据,变为insert语句select 'insert into tableName (cityID,cityName) values ('''+cityID+''','''...
分类:
数据库 时间:
2015-04-02 18:46:17
阅读次数:
231
当你在eclipse中新建一个支持4.0之前系统的项目时,adt默认会把Android support lib引入你的主项目。 但是很多时候会报下面这样的错误: appcompat_v7/res/values/styles_base.xml:24:?error:?Error?retrievin...
分类:
移动开发 时间:
2015-04-02 16:53:33
阅读次数:
147
Controller代码publicclassSystemUserController:Controller{//publicvoidLog()//{//stringmeg="";//intuser=int.Parse(CookieHelper.GetValue("SysUserID"));//stringip=IPHelper.GetUserIp;//foreach(variteminRouteData.Values)//{//meg+=item.Key.ToUpper()+":"+item.Value..
分类:
Web程序 时间:
2015-04-02 16:43:49
阅读次数:
241
Android Studdio中错误简要代码如下:
\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v21\values.xml
解决方法:
File-->Project Structure(Ctrl+Alt+Shift+s) 中compile sdk ...
分类:
移动开发 时间:
2015-04-02 16:31:36
阅读次数:
153
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-04-02 14:48:37
阅读次数:
163
Mysql:主键自增长。*_mapper.xml:insert into (name, code, version) values (#{name}, #{code}, #{version})就实现了插入之后获得主键的功能。
分类:
其他好文 时间:
2015-04-02 13:23:13
阅读次数:
181