【发布时间】:2015-05-29 07:24:43
【问题描述】:
在阅读 sqlite change log 时,我遇到了这个声明
2012-03-20 (3.7.11)
...
Queries of the form: "SELECT max(x), y FROM table" returns the value of y on the same row that contains the maximum x value.
...
我找到了commits that implement这个功能,希望能找到文档但没有运气。
我发现自己一直在使用这个功能并且想知道:
- 是否有此功能的文档?
- 我什么时候可以依靠它申请?
- 使用它有什么陷阱吗?
- 是否有类似的查询不适用?
【问题讨论】:
标签: sqlite documentation greatest-n-per-group