SnowConvert AI - Hive - CREATE VIEW¶
Applies to
- Hive SQL
- Spark SQL
- Databricks SQL
Warning
This grammar is partially supported in Snowflake. Translation pending for these CREATE VIEW elements:
Description¶
Views are based on the result-set of an
SQLquery.CREATE VIEWconstructs a virtual table that has no physical data therefore other operations likeALTER VIEWandDROP VIEWonly change metadata. (Spark SQL Language Reference CREATE VIEW)
Grammar Syntax ¶
Sample Source Patterns¶
COMMENT clause¶
Input Code:¶
Output Code:¶
OR REPLACE¶
Note
This clause is fully supported in Snowflake
TEMPORARY (non-GLOBAL) VIEW¶
Note
This clause is fully supported in Snowflake
IF NOT EXISTS¶
Note
This clause is fully supported in Snowflake
Columns list¶
Note
This clause is fully supported in Snowflake