随笔分类 -  数据库

摘要:假设给定5个数:99, 99, 85, 80, 75 ROW_NUMBER() 结果: 1, 2, 3, 4, 5 DENSE_RANK() 结果: 1, 1, 2, 3, 4 RANK() 结果: 1, 1, 3, 4, 5 上述函数通常需要结合关键字OVER使用,用来表示排名的依据,结合一道例题 阅读全文
posted @ 2021-01-22 09:34 Daybreaking 阅读(380) 评论(0) 推荐(0)
摘要:LeetCode题目 链接:https://leetcode-cn.com/problems/rising-temperature 表 Weather + + + | Column Name | Type | + + + | id | int | | recordDate | date | | te 阅读全文
posted @ 2021-01-22 09:30 Daybreaking 阅读(158) 评论(0) 推荐(0)