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

Home -> Community -> Mailing Lists -> Oracle-L -> table partitions

table partitions

From: Rick Stephenson <RStephenson_at_Ovid.com>
Date: Mon, 15 Dec 2003 16:34:34 -0800
Message-ID: <F001.005D9FA8.20031215163434@fatcity.com>


create table aadedupekeys
(

   file_id number,
   rundate date,

   pk      number(10),
   dk      varchar2(128),

   constraint aadedupekeys_pk primary key (file_id,rundate) )
;

Is there anyway to partition a table (above) in months e.g.
('January','Februray'...). I want to use the rundate and list partition it
using the months of the year. How can I do that without actually having to create another column in the table that only contains the month it belongs to? I cannot seem to use a function on the rundate field as part of the partition syntax to generate a month to partition the data.

Thanks for your help,

Rick Stephenson

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, forwarding or otherwise distributing or taking any action in reliance on the contents of this information is strictly prohibited.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Rick Stephenson
  INET: RStephenson_at_Ovid.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Mon Dec 15 2003 - 18:34:34 CST

Original text of this message

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