Create Table (Data Management)

The workspace where the output table will be created.

Table Name

The name of the table that will be created.

Template Datasets

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.

Configuration Keyword

The configuration keyword that determines the storage parameters of the table in an enterprise geodatabase.

Table Alias Name

The alternate name of the output table that will be created.

Specifies whether the output Object ID field will be 32 bit or 64 bit.

Derived Output

The new output table.

arcpy.management.CreateTable(out_path, out_name, , , , oid_type)

The workspace where the output table will be created.

The name of the table that will be created.

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.

config_keyword

The configuration keyword that determines the storage parameters of the table in an enterprise geodatabase.

The alternate name of the output table that will be created.

Specifies whether the output Object ID field will be 32 bit or 64 bit.

Derived Output

The new output table.

Code sample

CreateTable example 1 (Python window)

The following Python window script demonstrates how to use the CreateTable function in immediate mode.

import arcpy arcpy.env.workspace = "C:/data" arcpy.management.CreateTable("C:/output", "habitatTemperatures.dbf", "vegtable.dbf")
CreateTable example 2 (stand-alone script)

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)

Environments

Licensing information