Add Incrementing ID Field (Data Management Tools)
Summary
Adds a database-maintained, incrementing ID field to an existing table or feature class in a Dameng, IBM Db2, Microsoft Azure SQL Database, Microsoft SQL Server, Oracle, or PostgreSQL database. A database-maintained ID field is required for all feature classes or tables you plan to edit through a feature service.
Usage
Caution:
This tool modifies the input data. See Tools that modify or update the input data for more information and strategies to avoid undesired data changes.
You cannot run this tool on tables or feature classes that are registered with the geodatabase.
You must be the owner of the table or feature class to add an ID field to it.
If you do not specify a name for the field,
ObjectIDis used by default. If a field namedObjectIDalready exists, the tool will not run until you provide a different name.If a database-maintained, incrementing ID field already exists, this tool will not add another one.
The following field types will be added:
DBMS
Data type
Dameng
int32 with identity property
Db2
integer as identity
Oracle
number with identity
PostgreSQL
serial
SQL Server
integer with identity property
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Table |
The location and name of the table or feature class to which an ID field will be added. |
Table View |
|
Field Name (Optional) |
The name to be used for the ID field. If no input is provided, the default |
String |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Updated Input Table |
The input table that is updated to include an incrementing ID field. |
Table |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes