The RENAME VIEW statement (rename_view_statement) changes the name of a view table.
<rename_view_statement> ::= RENAME VIEW <old_table_name> TO <new_table_name>
<old_table_name> ::= <table_name>
<new_table_name> ::= <identifier>
The table old_table_name must be a view table. The current user must be the owner of the view table.
The new table name must not yet be used for a table of the current user.
The CREATE VIEW statement of the old_table_name view table is adapted to the new name. The result of this adaptation can be retrieved from the table DOMAIN.VIEWDEFS.
The definitions of view tables based on the old_table_name view table are adapted to the new name.