标识列,是SQL Server中的标识列又称标识符列,习惯上又叫自增列。标识列的创建与修改,通常在企业管理器和用Transact-SQL语句都可实现。
标识列(IDENTITY COLUMN)是 DB2 数据库 提供的一种可自动为表中的每一行生成唯一数值的方法。比如用来表示一些定单号、流水号、文件编码等信息。
基于394个网页-相关网页
不能修改标识列的数据类型(SQLSTATE 42997)。
The data type of an identity column cannot be altered (SQLSTATE 42997).
所以,如果在表中找到一个标识列,例如主键,则可以找到一种不同的解决方案。
So a different solution was found if an identifying column like a primary key is found in the table.
例如,我们无法针对分区的列使用标识列或者时间戳,而分区列需要是主键的组成部分。
For example, one cannot use identity columns or timestamps for the partitioning column, but the partitioning column has to be part of the primary key.
应用推荐