首先需要为代理键生成惟一的值。
键管理器封装了代理键生成函数。
The key manager encapsulates the surrogate key generation function.
标识符可能使用代理键。
我们可以使用该函数为代理键列生成惟一值。
It can be used to generate unique values for the surrogate key column.
另一种传统方法是使用触发器来生成代理键。
Another traditional way is to use a trigger to generate the surrogate key.
本文描述了实现作为主键的代理键的三种方法。
This article described three approaches to implementing a surrogate key as primary key.
简述代理键替换管道如何工作。
文中主要讨论了如何为代理键生成惟一的序列值。
It focused on how to generate unique consequent values for the surrogate key.
当创建一个表时,可以添加一个额外的列作为代理键。
When you create a table, you can add an extra column to be the surrogate key.
很多大型的应用程序使用键管理器方法维护所有表的代理键。
Many large applications use the key manager method to maintain the surrogate keys for all tables.
什么是代理键?
第三,编写KeyManger类来维护每个已注册表的代理键。
Third, write the KeyManger class to maintain the surrogate keys for each registered table. The KeyManager class will provide two methods.
IDENTITY函数在大多数情况下是代理键函数的一个好的解决方案。
The IDENTITY function is a good solution for a surrogate key function in most cases.
SNMP服务忽视扩展代理键%1因为它已丢失或配置不当。
The SNMP Service is ignoring extension agent key % 1 because it is missing or misconfigured.
代理键的值从某一个数字开始,例如 "1",以这个数字作为该列在表中第一行的值,之后的每一行中该列的值都按 1递增。
The surrogate key values start with a number, for example "1", for the first row of the table, and is incremented by one for each row thereafter.
如果您使用一个数据仓库,其中的代理键保证都是唯一的,那么要考虑设置为Maximisedataaccessspeed。
If you are using a data warehouse where surrogates keys are guaranteed to be unique then consider Maximise data access speed.
如果使用复制发布表,则自动会为复制代理执行的操作禁用外键约束。
If you publish a table by using replication, you automatically disable foreign key constraints for operations that replication agents perform.
如果使用复制发布表,则自动会为复制代理执行的操作禁用外键约束。
If you publish a table by using replication, you automatically disable foreign key constraints for operations that replication agents perform.
应用推荐