As you probably noticed there is a select box '-Table theme-' in the toolbar which allows selecting a table theme from the predefined set. The generated CSS contains all the necessary colors etc. So that the table should look similar when you paste it to your website.
Exports the rows of a table, table view, feature layer, feature class, or raster with attribute table to a new geodatabase, .csv, .txt, or .dbf table.
This tool supports the following table formats as input:
For file input (.csv or .txt), the first row of the input file is used as the field names on the output table. Field names cannot contain spaces or special characters (such as $ or *), and you will receive an error if the first row of the input file contains spaces or special characters.
All fields in the output dataset and the contents of those fields can be controlled using the Field map.
When converting geodatabase data that has subtypes or domains to a dBASE table, both the subtype and domain codes and descriptions can be included in the output. Use the Transfer field domain descriptions geoprocessing environment to control this behavior. By default, only domain and subtype codes will be included in the output, not descriptions.
Conversion to a dBASE (.dbf) table with subtype and domain descriptions may take more time (slower performance) than without descriptions. If you do not require the subtype and domain descriptions in your dBASE (.dbf) table output, it is recommended that you use the unchecked (False or NOT_TRANSFER_DOMAINS in scripting) default behavior of the Transfer field domain descriptions environment to achieve best performance.
Parameter | Explanation | Data Type |
The input table to be exported to a new table. | Table View; Raster Layer | |
out_path | The destination where the output table will be written. | Workspace |
The name of the output table. If the output location is a folder, include an extension such as .csv, .txt, or .dbf to export the table to that format. If the output location is a geodatabase, do not specify an extension. | String | |
where_clause | An SQL expression used to select a subset of records. Learn more about SQL query expressions | SQL Expression |
field_mapping | Controls which attribute fields will be in the output. By default, all fields from the inputs will be included. Fields can be added, deleted, renamed, and reordered, and you can change their properties. Merge rules allow you to specify how values from two or more input fields are merged or combined into a single output value. There are several merge rules you can use to determine how the output field will be populated with values.
In Python, you can use the FieldMappings class to define this parameter. | Field Mappings |
config_keyword | Specifies the default storage parameters (configurations) for geodatabases in a relational database management system (RDBMS). This setting is applicable only when using enterprise geodatabase tables. Configuration keywords are set by the database administrator. | String |
Name | Explanation | Data Type |
out_table | The output table. | Table |
The following Python window script demonstrates how to use the TableToTable function in immediate mode.
TableToTable example 2 (stand-alone script)The following stand-alone script demonstrates how to use the TableToTable function.