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: Syntax for foreign key

Re: Syntax for foreign key

From: Gary Chambers <gc22_at_lucent.com>
Date: Wed, 26 Mar 2003 12:53:50 -0800
Message-ID: <F001.00573AAF.20030326125350@fatcity.com>


Dennis...

> I'm trying to add a foreign key constraint to a table, and specify the
> tablespace and pctfree. Here is the syntax I'm using:
>
> alter table jobproductoutrigger add (
> constraint fk_jobprodu_currjobfa_currjobf foreign key (
> jobnbr, sourcefiscalyear )
> references currjobfact (jobnbr, sourcefiscalyear)
> using index tablespace index73
> pctfree 5)
> /

Check the length of the constraint name. I don't know what the limitation is (I haven't looked), but I recall having a similar problem, so I just shortened the name.

Gary Chambers

//--------------------------------------
// Lucent Technologies ITO/Servers/Unix
// Senior Unix System Administrator
// 4 Robbins Road, Westford, MA 01886
// 978-399-0481 / 888-480-6924 (Pager)

// Nothing fancy and nothing Microsoft
//--------------------------------------

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Gary Chambers
  INET: gc22_at_lucent.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 Wed Mar 26 2003 - 14:53:50 CST

Original text of this message

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