select id, addr, riqi, row_number()over (partition by riqi order by riqi) as paixufrom (select 1 id,'AA' addr,20150101 as riqi from dualunion allselec...
分类:
其他好文 时间:
2015-08-20 23:56:42
阅读次数:
181
这是一道常见的面试题,在实际项目中经常会用到。需求:求出以产品类别为分组,各个分组里价格最高的产品信息。实现过程如下: declare @t table( ProductID int, ProductName varchar(20), ProductType varchar(20), Price.....
分类:
数据库 时间:
2015-08-20 14:45:33
阅读次数:
256
N -概率Time Limit:4000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusDescriptionAs Harry Potter series is over, Harry has no job. Since he...
分类:
其他好文 时间:
2015-08-20 12:27:35
阅读次数:
116
DescriptionAs Harry Potter series is over, Harry has no job. Since he wants to make quick money, (he wants everything quick!) so he decided to rob ban...
分类:
其他好文 时间:
2015-08-20 10:15:53
阅读次数:
148
原因:触发返回按钮后跳转到listview主界面,数据要重新加载,这时要想加载数据,就要在启动Activity的时候程序自动加载,而handler里面写的是主线程,一定会执行,所以在后面添加/***处理消息(主线程),更新适配器,如果在Thread里处理可能会出错**/handler=newHandler(){@Over..
分类:
其他好文 时间:
2015-08-20 06:54:56
阅读次数:
215
If I have an array, and I want to apply filter, map, forEach to it.let Observable = Rx.Observable;let ary = Observable.fromArray([1,2,5,4,6]);ary .fi....
分类:
Web程序 时间:
2015-08-19 23:39:46
阅读次数:
179
DescriptionAs Harry Potter series is over, Harry has no job. Since he wants to make quick money, (he wants everything quick!) so he decided to rob ban...
分类:
其他好文 时间:
2015-08-19 23:05:19
阅读次数:
460
sql over开窗函数,1.使用over子句与rows_number()以及聚合函数进行使用,可以进行编号以及各种操作。而且利用over子句的分组效率比group by子句的效率更高。2.在订单表(order)中统计中,生成这么每一条记录都包含如下信息:“所有订单的总和”、“每一位客户的所有订单的...
分类:
数据库 时间:
2015-08-19 20:20:21
阅读次数:
167
com.google.guava guava 18.0 ch.qos.logback logback-classic 1.1.3 org.slf4j slf4j-api 1.7.11 org.slf4j jcl-over-slf4j...
分类:
其他好文 时间:
2015-08-19 19:54:14
阅读次数:
205
pom jar包引用 ch.qos.logback logback-classic 1.1.3 org.slf4j slf4j-api 1.7.11 org.slf4j jcl-over-slf4j 1.7.11类引用import org.slf4j.Logger;import o...
分类:
其他好文 时间:
2015-08-19 19:10:46
阅读次数:
247