CHANGE_TRACKING_IS_COLUMN_IN_MASK 当值没有改变时
CHANGE_TRACKING_IS_COLUMN_IN_MASK when value has not changed
假设我有一个启用了更改跟踪的 table,我更新了给定主键的 table 的列。我更新的值与之前的值相同。
查看 docs,MSDN 表示如果列在集合 change_columns.
中,此函数将 return 为真
CHANGE_TRACKING_IS_COLUMN_IN_MASK returns the following values.
0: The specified column is not in the change_columns list.
1: The specified column is in the change_columns list.
查看 further,change_columns 列表是 CHANGETABLE.SYS_CHANGE_COLUMNS 属性 的包装器,定义为:
Lists the columns that have changed since the last_sync_version (the
baseline).
这是模棱两可的。 "changed" 在这种情况下是什么意思?如果值相同,那么它是否发生了变化?
有人知道答案吗?
我刚刚尝试过并且可以报告是的,CHANGE_TRACKING_IS_COLUMN_IN_MASK returns 当列值已更改时为真,无论实际更改增量是多少。
假设我有一个启用了更改跟踪的 table,我更新了给定主键的 table 的列。我更新的值与之前的值相同。
查看 docs,MSDN 表示如果列在集合 change_columns.
中,此函数将 return 为真CHANGE_TRACKING_IS_COLUMN_IN_MASK returns the following values.
0: The specified column is not in the change_columns list.
1: The specified column is in the change_columns list.
查看 further,change_columns 列表是 CHANGETABLE.SYS_CHANGE_COLUMNS 属性 的包装器,定义为:
Lists the columns that have changed since the last_sync_version (the baseline).
这是模棱两可的。 "changed" 在这种情况下是什么意思?如果值相同,那么它是否发生了变化?
有人知道答案吗?
我刚刚尝试过并且可以报告是的,CHANGE_TRACKING_IS_COLUMN_IN_MASK returns 当列值已更改时为真,无论实际更改增量是多少。