Entering content frame

RENAME TABLE Statement (rename_table_statement) Locate the document in its SAP Library structure

A RENAME TABLE statement (rename_table_statement) changes the name of a base table.

Syntax

<rename table statement> ::=
RENAME TABLE <old table name> TO <new table name>

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

Explanation

If a schema name is not specified in the table name, the current schema is assumed implicitly. The old table name must identify a base table that is not a temporary table.

The new table name must not already be assigned to a base or view table or a private synonym in the schema of the current user.

The old table is assigned the name specified in the new_table_name. All of the properties of the table (for example, privileges, indexes) remain unchanged. The definitions of view tables based on the old table name are adapted to the new name.

 

Leaving content frame