Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt

Use this file to discover all available pages before exploring further.

Lists the views defined in the current database and the CREATE VIEW statement that defines each view. For more information regarding views, see information_schema.views.

Syntax

SHOW VIEWS;

Returns

The returned table has the following columns.
Column nameData TypeDescription
view_nameTEXTThe name of the view.
view_definitionTEXTThe query statement that defines the view.

Example

The following example displays the view name and view definition of a views in the database queried: Returns:
view_nameschema
v14CREATE VIEW “v14” AS SELECT a.* FROM (SELECT 1 AS “x”) AS “a” INNER JOIN (SELECT 1 AS “x”) AS “b” USING(x)
v15CREATE VIEW IF NOT EXISTS “v15” AS SELECT * FROM “bf_test_t” WHERE ( “n” = 0 )
v16CREATE VIEW “v16” AS WITH x7 AS (SELECT _ FROM “oz_x6” ) SELECT _ FROM “x7”