Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 spork 和 guard 下运行规范,这使事情变得复杂。但这将非常方便。
正如评论中所回答的那样,快速失败。
我有一个表,其中有一列名为itemCount,我想选择前 n 行,而SUM(itemCount)小于y.
itemCount
SUM(itemCount)
y
+----+-----------+ | id | itemCount | +----+-----------+ | 1 | 5 | | 2 | 10 | |