-- 已在客户备份核对列结构;业务语义仍待确认。 -- SQL Server 2008 R2 语法;主键游标分页,时间水位尚未启用。 SELECT TOP (:batch_size) i.id AS id, i.code AS code, i.name, i.specification, i.idunit, i.idinventoryclass, i.disabled, i.invSCost, i.updated AS source_updated_at, i.ts AS source_rowversion FROM dbo.AA_Inventory AS i WHERE i.id > :after_id ORDER BY i.id;