Entering content frame

RENAME VIEW statement 

A RENAME VIEW statement changes the name of a view table (see Table).

Syntax

<rename_view_statement> ::= RENAME VIEW <old_table_name> TO <new_table_name>

<old_table_name> ::= <table_name>
<new_table_name> ::= <table_name>
table_name

Explanation

The 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 are adapted to the new name.

Leaving content frame