ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Create Table

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Creates an ArcSDE, file, or personal geodatabase table, or an INFO or dBASE table.

Usage

  • If the output location is a folder, the default output is an INFO table.

  • To create a dBASE table in a folder, you must append the extension .dbf to the output table name.

Syntax

CreateTable_management (out_path, out_name, {template}, {config_keyword})
ParameterExplanationData Type
out_path

The ArcSDE, file, or personal geodatabase or workspace in which the output table will be created.

Workspace
out_name

The name of the table to be created.

String
template
[template,...]
(Optional)

A table whose attribute schema is used to define the output table. Fields in the template table(s) 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 ArcSDE geodatabase.

String

Code sample

CreateTable Example (Python Window)

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

import arcpy
from arcpy import env

env.workspace = "C:/data"
arcpy.CreateTable_management("C:/output", "habitatTemperatures.dbf", "vegtable.dbf")
CreateTable Example 2 (Stand-alone Python Script)

The following Python script demonstrates how to use the CreateTable function in a stand-alone script.

# Name: CreateTable_Example2.py
# Description: Create table to store temperature data in gnatcatcher habitat areas
# Author: ESRI

# Import system modules
import arcpy
from arcpy import env

# Set workspace
env.workspace = "C:/data"

# Set local variables
out_path = "C:/output"
out_name = "C:/output/habitatTemperatures.dbf"
template = "vegtable.dbf"
config_keyword = ""

# Execute CreateTable
arcpy.CreateTable_management(out_path, out_name, template, config_keyword)

Environments

  • Current Workspace
  • Output CONFIG Keyword
    Note:

    ArcSDE data only.

  • Scratch Workspace

Licensing information

  • ArcGIS for Desktop Basic: Yes
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Table toolset

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal