实际测试:数据库:70万条数据查询第10000页,每页10条。row_number() 耗时: 2.2秒rownum 耗时:1.3秒查询第20000页,每页10条。row_number() 耗时: 4.5秒+rownum 耗时:3.8秒+ 网上看到的说,row_number()效率最高看来是没有经....
分类:
其他好文 时间:
2014-09-02 13:58:14
阅读次数:
216
LeetCode: Partition ListGiven a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.Y...
分类:
其他好文 时间:
2014-09-02 00:05:33
阅读次数:
235
开发说业务有个统计跑不出结果,我让他把sql给我,他说不清楚,那我就直接才消耗时间最长了sql了,查找sql如下SELECTinst_id,
sql_id,
sql_fulltext,
round(exec_time/1000000,0)/60exec_time
FROM(SELECTinst_id,
sql_id,
sql_fulltext,
exec_time,
rank()over(ORDERBYexec_ti..
分类:
数据库 时间:
2014-09-01 19:45:45
阅读次数:
411
pg_rewind is a tool for synchronizing a PostgreSQL data directory with another PostgreSQL data directory that was forked from the first one. The result is equivalent to rsyncing the first data directory with the second one. The advantage of pg_rewind over ...
分类:
数据库 时间:
2014-09-01 17:44:53
阅读次数:
495
HTTP协议特点:?HyperText Transfer Protocol?设计HTTP最初的目的是为了提供一种发布和接收HTML页面的方法。通过HTTP或者HTTPS协议请求的资源由统一资源标识符(Uniform Resource Identifiers,URI)来标识。?Over TCP/IP?...
分类:
其他好文 时间:
2014-09-01 17:16:43
阅读次数:
248
//给出n和k,求k个不同的正整数,使其中k-1个数能组成平方数,k个数的和为n。有解输出YES,无解输出NO。
# include
# include
# include
# include
using namespace std;
int n,k;
bool judge(int num)
{
int yy=num*num;//k-1个数相加
int kk=n-yy;
...
分类:
其他好文 时间:
2014-09-01 15:36:43
阅读次数:
171
def partition(A, p, r): j = p+1 for i in range(p+1, r+1): if(A[i] < A[p]): tmp = A[i] A[i] = A[j] A[j] =...
分类:
编程语言 时间:
2014-08-31 18:38:31
阅读次数:
295
1, 首先在一个java文件中设断点,然后运行,当程序走到断点处就会转到debug视图下,2, F5键与F6键均为单步调试,F5是step into,也就是进入本行代码中执行,F6是step over, 也就是执行本行代码,跳到下一行,3,F7是跳出函数4,F8是执行到最后。//////////.....
分类:
系统相关 时间:
2014-08-31 18:34:21
阅读次数:
264
转载自:数学的美学世界-人人小站Symbols+plus/'pl?s/-minus/'ma?n?s/±plus or minus/'pl?s ?:'ma?n?s/xmultiplied by/'m?lt?pla?d ba?//over; divided by/'??v?/ /d?'va?d?d/÷d...
分类:
其他好文 时间:
2014-08-31 15:45:21
阅读次数:
417
简单的说row_number()从1开始,为每一条分组记录返回一个数字,这里的ROW_NUMBER() OVER (ORDER BY xlh DESC) 是先把xlh列降序,再为降序以后的没条xlh记录返回一个序号。
分类:
其他好文 时间:
2014-08-31 15:42:41
阅读次数:
294