Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Table toolset > Tools

Copy Rows (Data Management)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Writes the rows from an input table, table view, feature class or feature layer to a new table.


Usage tips

Command line syntax
An overview of the Command Line window
CopyRows_management <in_rows> <out_table> {config_keyword}

Parameter Explanation Data Type
<in_rows>

The rows from a feature class, layer, table, or table view to be copied.

Table View | Raster Layer
<out_table>

The table to which the rows will be written. If this table already exists it may be overwritten based on the Overwrite output setting. To control the overwrite behavior in an application see the Tools/Options/Geoprocessing options, in a script see the OverwriteOutput property on the geoprocessor object.

Table
{config_keyword}

The config keyword specifies the default storage parameters (configuration) for geodatabases in a relational database management system (RDBMS). This setting is applicable only when using ArcSDE.

String
Data types for geoprocessing tool parameters


Command line example

copyrows_management c:\base_data\water.mdb\hydro_stats c:\temp\hydro_stats.dbf

Scripting syntax
About getting started with writing geoprocessing scripts
CopyRows_management (in_rows, out_table, config_keyword)

Parameter Explanation Data Type
in_rows (Required)

The rows from a feature class, layer, table, or table view to be copied.

Table View | Raster Layer
out_table (Required)

The table to which the rows will be written. If this table already exists it may be overwritten based on the Overwrite output setting. To control the overwrite behavior in an application see the Tools/Options/Geoprocessing options, in a script see the OverwriteOutput property on the geoprocessor object.

Table
config_keyword (Optional)

The config keyword specifies the default storage parameters (configuration) for geodatabases in a relational database management system (RDBMS). This setting is applicable only when using ArcSDE.

String

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()

gp.workspace = "c:/states/utah.mdb"
gp.toolbox = "management"

# Create a table view that is a subset of the input
query = '[CITY] = "Salt Lake City"'
gp.maketableview("address", "salt_lake_view", query)

# Copy the table view to a new table
gp.copyrows("salt_lake_view", "salt_lake_addresses")

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.