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 -> Foreign Key to table in other schema?

Foreign Key to table in other schema?

From: Martijn Tonies <m.tonies_at_upscene-removethis.nospam.com>
Date: Wed, 24 Aug 2005 16:15:19 +0200
Message-ID: <11gp05ugik66pc1@corp.supernews.com>


Hi there,

I've checked the docs, but the only limitation I can find about FKs is related to clustering.

From the SQL Syntax doc, I figured the below should be possible:

alter table scott.child
add constraint fk_child_child
foreign key (parentid) references northwind.parent (id)

I was logged in with "system" and I can select from "northwind.parent", but the statement above kept on returning: ORA-00942: table or view does not exist

Is this possible, or isn't it?

-- 
With regards,

Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
Received on Wed Aug 24 2005 - 09:15:19 CDT

Original text of this message

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