Oracle: rename a table column 

Joined:
04/09/2007
Posts:
703

September 10, 2008 22:56:11    Last update: September 10, 2008 22:56:11
Oracle Database lets you rename existing columns in a table.

ALTER TABLE hr.admin_emp
      RENAME COLUMN comm TO commission;


Altering a table column can invalidate dependent objects. However, when you rename a column, the database updates associated data dictionary tables to ensure that function-based indexes and check constraints remain valid.
Share |
| Comment  | Tags
 
Easy email testing with http://www.ximailstop.com