Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How do you rename a column in a table?

Re: How do you rename a column in a table?

From: wayne <no_at_email.please.com>
Date: 12 Jun 2001 22:00:42 GMT
Message-ID: <9g63ea$o04@dispatch.concentric.net>

> How do you rename a column in a table?

depending on the Oracle version you have:

  1. Create a temporary table with the name structure and renamed field; move all data from original to temp table; delete source table; recreate original table with correct field name; move data back from temp to new table; delete temp table.
  2. ALTER TABLE with rename field syntax (latest version of Oracle only). Read the docs for more info.
Received on Tue Jun 12 2001 - 17:00:42 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US