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: partiioning option not worth it?

Re: partiioning option not worth it?

From: Galen Boyer <galenboyer_at_hotpop.com>
Date: 1 Mar 2002 23:05:05 -0600
Message-ID: <uadtrie99.fsf@rcn.com>


On Sat, 23 Feb 2002, kboulton_at_ntlworld.com wrote:
>
> True, but cut and paste is the most efficient code reuse mechanism
> I've ever encountered.

#!/bin/ksh

NewPartitionName=$1

sqlplus user/pass_at_blah <<EOF
create table $NewPartitionName
(
....
)

create or replace view blah as

    select ...
    from ...

    UNION     select ...
    from ...

    UNION     select ...
    from $NewPartitionName
;

EOF Does this do better than cut and paste? :-)

-- 
Galen deForest Boyer
Sweet dreams and flying machines in pieces on the ground.
Received on Fri Mar 01 2002 - 23:05:05 CST

Original text of this message

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