[步骤]
(@reserveMonth int)SELECT * FROM RB_ListingInventoryStockDay(NOLOCK) WHERE CustomerId=1 and UpdateTime < CONVERT(varchar(7), DATEADD(mm, -@reserveMonth ,getdate()), 120)+'-01'

[结果]
[期望]
查询消耗资源大,建议分页读库拉取[步骤]
(@reserveMonth int)SELECT * FROM RB_ListingInventoryStockDay(NOLOCK) WHERE CustomerId=1 and UpdateTime < CONVERT(varchar(7), DATEADD(mm, -@reserveMonth ,getdate()), 120)+'-01'

[结果]
[期望]
查询消耗资源大,建议分页读库拉取| 由谁创建 | 袁慧斌 于 2026-03-17 14:51:08 |
|---|---|
| 影响环境 |
生产环境-业务反馈 |
| 由谁解决 | 袁慧斌 于 2026-03-17 15:37:44 |
| 解决版本 | 主干 |
| 解决方案 | 非BUG-纯属误判 |
| 由谁关闭 | 袁慧斌 于 2026-03-17 15:38:27 |
| 最后修改 | 袁慧斌 于 2026-03-17 15:38:27 |
| 相关Bug |
|---|