Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 547 Bytes

3.1.2_DDL&View_Syntax.md

File metadata and controls

36 lines (22 loc) · 547 Bytes

3.1.2 VIEW DDL

Syntax

create view :

                 CREATE [OR REPLACE] VIEW

                                view_name [(column_list)]

                                AS select_statement

alter view :

                  alter  VIEW

                                view_name [(column_list)]

                                AS select_statement

drop view:

                DROP VIEW [IF EXISTS] view_name [, view_name]

show create view :

               SHOW CREATE VIEW view_name;