Re: Copy of Table

From: Daniel Morgan <damorgan_at_exxesolutions.com>
Date: Thu, 14 Aug 2003 15:42:40 -0700
Message-ID: <3F3C1060.85A8C526_at_exxesolutions.com>


Mohammad wrote:

> Hi
>
> I need to know how can I make copy of a table in sql-plus (Oracal).
> And how Can I return this copy overwrite on oracle table.
>
> Thank you for you help
>
> Thanks
> Mohammad

Overwriting of tables is impossible.

You can create a copy in the same or a different schema with:

CREATE TABLE <new_table_name> AS
SELECT *
FROM <table_name>;

If you want something different you will need to be more specific and be sure to include Oracle version number.

--
Daniel Morgan
http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Fri Aug 15 2003 - 00:42:40 CEST

Original text of this message