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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Partitioning by first digit of VARCHAR column data

Re: Partitioning by first digit of VARCHAR column data

From: <chris_at_thedunscombes.f2s.com>
Date: Fri, 27 Aug 2004 12:37:54 +0100
Message-ID: <1093606674.412f1d12e49f2@webmail.freedom2surf.net>


I've only used partitioning in 8.1.7 and things may have changed since then, but from what I can remember you can't use a function on a column as part of a partitioning key except for date columns.

HTH Chris

Quoting Surendra.Tirumala_at_ky.gov:

> Hi,
>
> I have a table with several columns which include a NUMBER(year) and a
> VARCHAR(some code) columns. The VARCHAR column has values that start with
> either 1 or 2 or 3 or 4. I would like to have composite range partition key
> based on YEAR and the first digit of the VARCHAR column. Is there any way I
> can accomplish this? Can I use some function like SUBSTR to partition the
> table based on first digit of VARCHAR column data?
>
> Thanks for your help.
> Surendra
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request_at_freelists.org
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
>

Chris Dunscombe

Christallize Ltd  



Everyone should have http://www.freedom2surf.net/

Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Fri Aug 27 2004 - 07:11:37 CDT

Original text of this message

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