Create Database View (Data Management)

ArcGIS Pro 3.4 | | Help archive

Summary

Creates a view in a database based on an SQL expression.

Usage

  • The SQL expression used to define the view is validated by the database when you run the tool. Valid syntax for the view definition is determined by the underlying database. If the syntax is incorrect, an error message is returned.

  • Views created in a geodatabase using this tool do not support a forward slash (/) character in the view definition. For example, if you have a column in the create view definition that is based on an expression such as Population1990 / 10, you need to create the view using SQL tools.

  • This tool is supported for databases, Open Geospatial Consortium (OGC) GeoPackage files, enterprise geodatabases, mobile geodatabases, and file geodatabases.

  • Views created in a geodatabase using this tool are not registered with the geodatabase.

  • If a spatial column is included in the view, the geometry storage type of the column must be an SQL data type (such as ST_Geometry or Geometry), not a binary geometry storage type.

  • Learn more about constructing a query and see examples of SQL expressions.

Parameters

LabelExplanationData Type
Input Workspace

The database that contains the tables or feature classes used to construct the view. This database is also where the view will be created.

Workspace
Output View Name

The name of the view that will be created in the database.

String
View Definition

An SQL statement that will be used to construct the view.

String

Derived Output

LabelExplanationData Type
Output Layer

The output database view.

Table

Environments

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics