题目描述:
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adj...
分类:
其他好文 时间:
2015-05-14 16:34:46
阅读次数:
115
INSERT INTO tbl_image_language (code,docomo_cd,au_cd,softbank_cd)SELECT DISTINCT((SELECT max(code ) + 1 FROM tbl_image_language)) ,docomo_cd,au_cd,sof...
分类:
数据库 时间:
2015-05-14 16:27:31
阅读次数:
247
动态绑定方法一:动态绑定数据库中的字段。SqlConnection conn = UtilitySqlClass.OperateDataBase.ReturnConn();string strSQL = "select * from CompanyType";SqlDataAdapter ada =...
分类:
其他好文 时间:
2015-05-14 16:24:03
阅读次数:
128
1. 生成目录函数原型:distutils.dir_util.mkpath(name[,mode=0777,verbose=0,dry_run=0])from distutils import dir_utildir_util.mkpath("new_dir")2. 删除目录函数原型:distuti...
分类:
编程语言 时间:
2015-05-14 16:08:46
阅读次数:
133
二.查询缺少值的查询在这里我们加入要查询2008年每一天的订单有多少?首先我们可以查询下订单表的订单日期在2008年的所有订单信息。1 select distinct orderdate,count(*) as N'每日订单量' from sales.orders2 where orderdat.....
分类:
数据库 时间:
2015-05-14 15:53:42
阅读次数:
230
select 字段1,字段2,字段3 into tempname form table where table.id=1;这个会给tempname 表中自动生成字段1,字段2,字段3 三个字段以及值。修改表字段值,根据nidupdate tablename set 字段1=tb.ssm from (...
分类:
数据库 时间:
2015-05-14 15:41:47
阅读次数:
192
一什么是ngrok ngrok is a reverse proxy that creates a secure tunnel from a public endpoint to a locally running web service. ngrok captures and analyzes ....
分类:
其他好文 时间:
2015-05-14 15:38:59
阅读次数:
134
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
分析;
此题是求二叉树的深度,(无所谓最大深度),用递归的方法很容...
分类:
其他好文 时间:
2015-05-14 14:18:49
阅读次数:
117
方法一 直接查询:SqlRowSet srcSqlRowSet = srcJdbcTemplate.queryForRowSet("SELECT * FROM tablename LIMIT 0"); //注意limit 0更合适List columneMetaList = new LinkedLi...
分类:
数据库 时间:
2015-05-14 13:56:55
阅读次数:
206
login as: rootroot@121.40.82.40's password:Last login: Fri Jul 25 21:53:25 2014 from 125.112.89.75Welcome to aliyun Elastic Compute Service![root@iZ23...
分类:
系统相关 时间:
2015-05-14 13:52:44
阅读次数:
259