Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Brazil
    Posts
    30

    Unanswered: Parent and child column data types

    I'm studying for an OCA exam and read that "the column data types in parent table and child table should match". I could not find this in other references, is this really a rule ?

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    yes it is
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Jan 2004
    Location
    Croatia, Europe
    Posts
    4,094
    Provided Answers: 4
    I don't know which documentation you use while studying, but you might bookmark official Oracle documentation. Here's a link to the Maintaining Data Integrity in Application Development chapter of the Oracle Database Application Developer's Guide - Fundamentals book; it says:
    Datatypes and Names for Foreign Key Columns

    You must use the same datatype for corresponding columns in the dependent and referenced tables. The column names do not need to match.
    I apologize if this is not what you are looking for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •