Rename Clause
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Purpose
Renames an existing table. It is optional.
Syntax
RENAME TO new_name
where:
- new_name
- specifies the new name for the table.
Example
This example renames the table to test2.
ALTER TABLE test RENAME TO test2