Rename Objects Introduction Rename table/column: Ability to rename a table or a column using new SQL syntax: No need to drop and recreate the table. No need to drop and add the column. No unload/reload of data.
Rename Objects New SQL Syntax Table rename Column rename [EXEC SQL] RENAME [TABLE] [schema.] TO [EXEC SQL] ALTER TABLE [schema.] RENAME TO [EXEC SQL] ALTER TABLE [schema.] RENAME [COLUMN] TO
You must own the tables (or whose column) you are renaming. You cannot rename a system catalog, extended system catalog or any tables owned by super user $ingres. You cannot rename columns of such catalogs Rename Objects Access Restrictions
The name of the new table/column should conform to naming rules for tables. –See SQL Reference Guide, chapter 2. There should be no table / column already existing in the database with same name and owner –The new table / column name will get the same reltid or attribute id. Rename Objects Naming Restrictions