摘要: 现有表如下: 需要查询每一个item对应的最后一条数据,SQL SERVER 如下: SELECT * FROM (SELECT ROW_NUMBER() OVER(PARTITION BY ItemCode ORDER BY RecordID desc) as RowNum, * from RSI 阅读全文
posted @ 2023-04-07 11:48 明天星期五啦 阅读(853) 评论(0) 推荐(0) 编辑