Views
The SQL commands for views enable you to create, replace, and drop views in the Nessie repository.
Creating or Replacing a View
SyntaxCREATE [ OR REPLACE ] VIEW <view_path> AS
<select_statement>
Parameters
{{< sql-section file="data/sql/views.json" data="creatingAView" >}}
Examples
Create a viewCREATE VIEW demo.example_view AS
SELECT *
FROM "oracle_tpch".DREMIO.JOBS
CREATE OR REPLACE VIEW demo.example_view AS
SELECT *
FROM "oracle_tpch".DREMIO.INVENTORY
Dropping a View
SyntaxDROP VIEW <view_path>
Parameters
{{< sql-section file="data/sql/views.json" data="droppingAView" >}}
Examples
Drop a viewDROP VIEW demo.example_view