forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2.1 KiB
2.1 KiB
CREATE VIEW
Syntax
CREATE VIEW [IF NOT EXISTS] view_name [{columnName [, columnName ]* }] [COMMENT view_comment] AS query_expression
Function
Create a view with multiple layers nested in it to simplify the development process.
Description
IF NOT EXISTS
If the view already exists, nothing happens.
Example
Create a view named viewName.
create view viewName as select * from dataSource
Parent topic: Data Definition Language (DDL)