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: Table partition: question

Re: Table partition: question

From: Christian Antognini <christian.antognini_at_trivadis.com>
Date: Mon, 19 Jul 2004 13:47:55 +0200
Message-ID: <40fbb4c5@post.usenet.com>

Hi

> It is possibile to use a SQL function (like SubStr) in the partition by
Hash
> clause of a Create table sentence?
> Ex: if I try
> Create Table a(
> info VARCHAR(8) Not Null
> )
> PARTITION BY HASH (SubStr(info,5,2))
> PARTITIONS 12
> I obtain an error: ORA-00900 invalid SQL Statement.

As you have verified it is not possible. This is also not a problem if you want to use hash partitioning, anyway you don't have the control on the hash function that is used to spread data over the partitions.

Chris

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Received on Mon Jul 19 2004 - 06:47:55 CDT

Original text of this message

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