Results 1 to 2 of 2

Thread: reg foreign key relations

  1. #1
    Join Date
    Jan 2003
    Location
    Hyderabad
    Posts
    23

    reg foreign key relations

    Is column which "ALLOW NULL" can be a foreign key to other column which is primary key.
    IF so how it is possible.

  2. #2
    Join Date
    Jun 2003
    Posts
    7
    There are only one restriction for the column which is defined as foreign key:
    If the value is other than NULL, it must be from the range of values of the primary key column of the "parent table".
    If the value is NULL, it means that such record has no related records in the "parent table".
    So all you have to do is to define the column as foreign key and as null.

Posting Permissions

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