现有表,数据如下: eg1:查询年龄第二的队员 通常写法: 看下a子句结果集: 但如果时要统计每个年级,年龄第二大的,上面的sql就不行了,子句必须指定具体年级才可以按年级排序。 rank()/dense_rank() over(partition by ...order by ...) 现在导入一 ...
分类:
数据库 时间:
2019-04-23 17:08:18
阅读次数:
130
1. text-rank基于的pagerank: 这个通俗易懂 https://www.letiantian.me/2014-06-10-pagerank/ 这个从矩阵层面讲解 https://zhuanlan.zhihu.com/p/32276862 2.tf-idf: https://zhuan ...
分类:
其他好文 时间:
2019-04-23 12:32:12
阅读次数:
156
主要是关于!=string::npos的用法和substr的用法 ...
分类:
其他好文 时间:
2019-04-20 00:19:01
阅读次数:
203
链接:https://vjudge.net/problem/HDU-1811 题意: 自从Lele开发了Rating系统,他的Tetris事业更是如虎添翼,不久他遍把这个游戏推向了全球。 为了更好的符合那些爱好者的喜好,Lele又想了一个新点子:他将制作一个全球Tetris高手排行榜,定时更新,名堂 ...
分类:
其他好文 时间:
2019-04-16 00:53:28
阅读次数:
167
https://ac.nowcoder.com/acm/contest/625/K 题意: 给出Q 个询问 i , 求 s[0..i-1] 与 s[i...len-1] 有多少相同的字串 分析: 给出了查询 , 容易想到先预处理出答案好吧 , 字符串的问题也容易想到后缀自动机 ,但是我们该怎么使用呢 ...
分类:
其他好文 时间:
2019-04-15 21:42:31
阅读次数:
285
https://blog.csdn.net/gwd1154978352/article/details/82781731 环境搭建篇 ElasticSearch教程——安装 ElasticSearch教程——安装Head插件 ElasticSearch教程——安装IK分词器插件 ElasticSea ...
分类:
其他好文 时间:
2019-04-15 18:28:46
阅读次数:
206
今天访问已经架上服务器的网站,报错: 具体原理参考:https://blog.csdn.net/frankcheng5143/article/details/50589264 ...
分类:
数据库 时间:
2019-04-15 16:45:37
阅读次数:
206
1012 The Best Rank (25 分) 1012 The Best Rank (25 分) 1012 The Best Rank (25 分) To evaluate the performance of our first year CS majored students, we co ...
分类:
其他好文 时间:
2019-04-10 23:34:11
阅读次数:
182
记一次大坑:mybatis查询结果和接收的不一样,折腾我好几个小时. 先上代码:代码是要查询排名,sql执行的结果 结果,用对象接收的时候,这个字段怎么都是rank=4. 这就让我觉得很奇怪了,最后找到https://blog.csdn.net/bwddd/article/details/80264 ...
分类:
其他好文 时间:
2019-04-10 18:02:34
阅读次数:
217
题目链接 https://www.nowcoder.com/practice/9b4c81a02cd34f76be2659fa0d54342a?tpId=13&tqId=11172&tPage=1&rp=1&ru=/ta/coding interviews&qru=/ta/coding interv ...
分类:
编程语言 时间:
2019-04-07 22:05:35
阅读次数:
206