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: Splitting a table after it is created?

Re: Splitting a table after it is created?

From: Galen Boyer <galenboyer_at_hotpop.com>
Date: 26 Jul 2001 21:01:14 -0500
Message-ID: <ur8v3ynkd.fsf@verizon.net>

On Sun, 22 Jul 2001, plovmand_at_hotmail.com wrote:

> create table mytab_1 as (select c1,c2......c251 from mytab);
> create table mytab_2 as (select c251,c253....c502);
>drop table mytab;

Just remember that mytab_2 needs to keep the primary key of mytab_1. So it will probably look like

create table mytab_1 as (select c1,c2......c251 from mytab); create table mytab_2 as (select c1,c251,c253....c502); drop table mytab;

-- 
Galen Boyer
It seems to me, I remember every single thing I know.
Received on Thu Jul 26 2001 - 21:01:14 CDT

Original text of this message

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