Skip to content

Commit 5e6ad0e

Browse files
committed
restore docs
1 parent 44ac58c commit 5e6ad0e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/sql-ref-syntax-ddl-create-view.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ CREATE [ OR REPLACE ] [ [ GLOBAL ] TEMPORARY ] VIEW [ IF NOT EXISTS ] view_ident
4747
* **IF NOT EXISTS**
4848

4949
Creates a view if it does not exist.
50-
This clause is not supported for `TEMPORARY` views yet.
5150

5251
* **view_identifier**
5352

@@ -87,8 +86,8 @@ CREATE OR REPLACE VIEW experienced_employee
8786
AS SELECT id, name FROM all_employee
8887
WHERE working_years > 5;
8988

90-
-- Create a global temporary view `subscribed_movies`.
91-
CREATE GLOBAL TEMPORARY VIEW subscribed_movies
89+
-- Create a global temporary view `subscribed_movies` if it does not exist.
90+
CREATE GLOBAL TEMPORARY VIEW IF NOT EXISTS subscribed_movies
9291
AS SELECT mo.member_id, mb.full_name, mo.movie_title
9392
FROM movies AS mo INNER JOIN members AS mb
9493
ON mo.member_id = mb.id;

0 commit comments

Comments
 (0)