我试图使用pymssql库在Server中执行多个查询。这是我的密码:cur.execute("DECLARE @begin_time datetime, @end_time datetime, @from_lsnthan or equal', @end_time);
SELECT * FROM cdc.fn_cdc_get_net_changes_dbo_users(@from_lsnthan or
第一次查询CDC时,我将('dbo_t1') (和sys.fn_cdc_get_min_lsn('dbo_t2') )作为@from_lsn for dbo_t1 (和cdc.fn_cdc_get_net_changes_dbo_t2同时, as @to_lsn.现在,当我下一次运行查询时,我只想要从上一次捕获开始捕获增量。仍然可以调用sys.fn_cdc_