update by partition sql update top 5 123456789SELECT ROW_NUMBER() OVER (PARTITION BY col1, col2 ORDER BY x desc) AS r, t.id FROM some_table t where condition = 'xxx') Awhere A.r < 5; sql postgresql 本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处! junit5 annotation 上一篇 Docker中exec和attach区别 下一篇 Please enable JavaScript to view the comments