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

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to rename a table?

Re: How to rename a table?

From: Brian Peasland <peasland_at_email.msn.com>
Date: Thu, 27 May 1999 18:17:26 -0500
Message-ID: <OctnYeJq#GA.205@cpmsnbbsa02>

Gennady wrote in message <374da284$0$2597_at_fountain.mindlink.net>...
>Hello,
>How can I rename existing table?

To rename table X, try this:

   create table tempX as select * from X;    drop table X;
   create table X as select * from tempX;

This will work unless there are foreign keys to X.

Hope that helps,
Brian Peasland
peasland_at_msn.com Received on Thu May 27 1999 - 18:17:26 CDT

Original text of this message

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