08 2023 档案

摘要:select row_number() over(partition by A order by B ) as rowIndex from table A :为分组字段 B:为分组后的排序字段。 table 表的结构 多为: 多人 多条的相关数据。(比如:订单信息) 此条sql语句,多用于对数据进行 阅读全文
posted @ 2023-08-18 10:10 小小刺猬 阅读(181) 评论(0) 推荐(0)