create view (core)

Creates a new view.

Syntax

Transact-SQL Syntax

create view [owner.]view_name
[(column_name [, column_name]...)]
 as select [distinct] select_statement
[with check option]

ODBC Syntax

CREATE VIEW viewed_table_name
[(column_identifier[,column_identifier]...)]
AS query_specification

Parameters

Examples

Usage

  • You can use views as security mechanisms by granting authorization on a view but not on its underlying tables.

  • The with check option is removed from the transformed SQL text.