前言: 同事的业务场景是,按照cid、author分组,再按照id倒叙,取出前2条记录出来。 oracle里面可以通过row_number() OVER (PARTITION BY cid,author ORDER BY id DESC) 表示根据cid,author分组,在分组内部根据id排序,而此函数计算的值就表示每组内部排序后的顺序编号(组内连续的唯一的),而my...
分类:
数据库 时间:
2014-09-10 23:58:01
阅读次数:
672
配过好几次,但是老忘记。记录备忘。安装下列插件:ssh和git插件用来下载源码publish over ssh 插件用来发布代码到测试环境。email插件用来更强大的email配置。在jenkins的全局配置中,配置Maven(包括私服的setting文件、指定jar包存储目录)、Git、JDK、A...
分类:
其他好文 时间:
2014-09-10 10:45:40
阅读次数:
314
在Activity中,注册广播的一个Demo。
总共分3步
第一步:定义一个BroadcastReceiver广播接收类:
[java] view
plaincopy
private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver(){
@Over...
分类:
移动开发 时间:
2014-09-09 21:39:39
阅读次数:
360
Web Pages - Efficient Paging Without The WebGrid If you want to display your data over a number of pages using WebMatrix Beta1, you have two options. ...
分类:
Web程序 时间:
2014-09-07 23:44:45
阅读次数:
397
说说:
其实这道题并不是很难,只是较为繁琐而已。首先,题意大概是这样的,开始的时候有若干个带有编号的盒子。然后总共有四种操作的方式:move a onto
b,先将编号为a和b之上的盒子都返回初始位置,然后将a放在b上。move a over b 将a上的盒子返回初始位置,然后将a放在b所在的盒子堆上。pile
a onto b,把b上的盒子返回初始位置,然后将a连同其上方的盒子放在b之上。...
分类:
其他好文 时间:
2014-09-07 16:04:57
阅读次数:
190
传送门Seek the Name, Seek the FameTime Limit: 2000MSMemory Limit: 65536KDescriptionThe little cat is so famous, that many couples tramp over hill and dal...
分类:
其他好文 时间:
2014-09-04 22:03:40
阅读次数:
240
Https协议:SSL建立过程分析web訪问的两种方式:http协议,我们普通情况下是通过它訪问web,由于它不要求太多的安全机制,使用起来也简单,非常多web网站也仅仅支持这样的方式下的訪问.https协议(Hypertext Transfer Protocol over Secure Socke...
分类:
其他好文 时间:
2014-09-04 20:51:30
阅读次数:
284
select?*?from?(select?row_number()over(order?by?Server_no?desc)?as?rownum,Server_no,Game_Name,Server_name?from?T_GameServer_List?where?IS_DELETE?=?‘N‘?and?Game_name?like?‘%q%‘)a...
分类:
数据库 时间:
2014-09-03 21:23:27
阅读次数:
215
Little Tim is now a graduate,and is thinking about higher studies. However, he first needs to appear in anexam whose preparation alone includes memorizing the meanings of over 3500words!
After going ...
分类:
其他好文 时间:
2014-09-03 13:10:06
阅读次数:
241