Add Fields (multiple) (Data Management Tools)
Summary
Adds new fields to a table, feature class, or raster.
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.
For shapefiles and dBase tables, if field type defines a character, blanks are inserted for each record. If field type defines a numeric item, zeros are inserted for each record.
Fields specified by the Field Properties parameter will have the following default properties:
The Allow NULL property will be true.
The Editable property will be true.
The Required property will be false.
The Precision and Scale properties are set by the field type and data source default values.
Fields can be added to the input using the Field Properties and Template Tables parameters. If values for both parameters are provided, fields will be added from both parameters.
The Field Properties parameter's Field Length option is only applicable to fields of type text.
A shapefile does not support aliases for fields, so you cannot add a field alias to a shapefile.
A field of type raster allows you to include a raster image as an attribute. It is stored in or alongside the geodatabase. This is helpful when an image is the best way to describe a feature. Precision, scale, and length cannot be set for fields of type raster.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Table |
The input table where the fields will be added. The fields will be added to the existing input table and will not create a new output table. Fields can be added to feature classes in geodatabases, shapefiles, coverages, stand-alone tables, raster catalogs, rasters with attribute tables, and layers. |
Table View; Raster Layer; Mosaic Layer |
|
Field Properties (Optional) |
The fields and their properties that will be added to the input table. Value table columns:
|
Value Table |
|
Template Tables (Optional) |
The feature classes or tables that will be used as a template to define the attribute fields to add. Fields from the inputs specified by this parameter will be added to the Input Table parameter value in addition to any fields specified by the Field Properties parameter. |
Table View |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Updated Input Table |
The updated input table. |
Table View; Raster Layer; Mosaic Layer |
Environments
Current Workspace, Transfer Field Domain Descriptions
Special cases
- Transfer Field Domain Descriptions
-
When this environment is checked, any fields that have an associated domain will use the domain description instead of the field's value. Values from fields that do not have a domain will be unaffected.
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes