The workspace where the output table will be created.
Workspace
Table Name
The name of the table that will be created.
String
Template Datasets
(Optional)
One or more datasets from which the attribute schema will be used to define the output table. Fields in the template datasets will be added to the output table.
Table View
Configuration Keyword
(Optional)
The configuration keyword that determines the storage parameters of the table in an enterprise geodatabase.
String
Table Alias Name
(Optional)
The alternate name of the output table that will be created.
String
OID Type
(Optional)
Specifies whether the output Object ID field will be 32 bit or 64 bit.
Same as template—The output Object ID field type (32 bit or 64 bit) will be the same as the Object ID field of the first template dataset. This is the default.
The workspace where the output table will be created.
Workspace
out_name
The name of the table that will be created.
String
template[template,...]
(Optional)
One or more datasets from which the attribute schema will be used to define the output table. Fields in the template datasets will be added to the output table.
Table View
config_keyword
(Optional)
The configuration keyword that determines the storage parameters of the table in an enterprise geodatabase.
String
out_alias
(Optional)
The alternate name of the output table that will be created.
String
oid_type
(Optional)
Specifies whether the output Object ID field will be 32 bit or 64 bit.
SAME_AS_TEMPLATE—The output Object ID field type (32 bit or 64 bit) will be the same as the Object ID field of the first template dataset. This is the default.
64_BIT—The output Object ID field will be 64 bit.
32_BIT—The output Object ID field will be 32 bit.
String
Derived output
Name
Explanation
Data type
out_table
The new output table.
Table
Code sample
CreateTable example 1 (Python window)
The following Python window script demonstrates how to use the CreateTable function in immediate mode.
The following Python script demonstrates how to use the CreateTable function in a stand-alone script:
# Name: CreateTable_Example2.py
# Description: Create a table to store temperature data in gnatcatcher habitat areas
# Import system modules
import arcpy
# Set workspace
arcpy.env.workspace = "C:/data"
# Set local variables
out_path = "C:/output"
out_name = "habitatTemperatures.dbf"
template = "vegtable.dbf"
config_keyword = ""
# Run CreateTable
arcpy.management.CreateTable(out_path, out_name, template, config_keyword)