Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 90247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:50:36+00:00 2026-05-10T22:50:36+00:00

ORACLE does not permit NULL values in any of the columns that comprise a

  • 0

ORACLE does not permit NULL values in any of the columns that comprise a primary key. It appears that the same is true of most other ‘enterprise-level’ systems.

At the same time, most systems also allow unique contraints on nullable columns.

Why is it that unique constraints can have NULLs but primary keys can not? Is there a fundamental logical reason for this, or is this more of a technical limitation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T22:50:37+00:00Added an answer on May 10, 2026 at 10:50 pm

    Primary keys are for uniquely identifying rows. This is done by comparing all parts of a key to the input.

    Per definition, NULL cannot be part of a successful comparison. Even a comparison to itself (NULL = NULL) will fail. This means a key containing NULL would not work.

    Additonally, NULL is allowed in a foreign key, to mark an optional relationship.(*) Allowing it in the PK as well would break this.


    (*)A word of caution: Having nullable foreign keys is not clean relational database design.

    If there are two entities A and B where A can optionally be related to B, the clean solution is to create a resolution table (let’s say AB). That table would link A with B: If there is a relationship then it would contain a record, if there isn’t then it would not.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Oracle does not support a bit datatype or any other type for true/false scenarios.
Can someone enlighten on why is that oracle does not support an autoincrement feature
I used to think that Oracle does not index a row when one of
I just learned that by default, Oracle does not grant the 'create session' privilege
What is the equivalent of oradim on Linux? Does Oracle even provide anything like
Does anyone know why in Oracle 11g when you do a Count(1) with more
Question: Does Informix have a construct equivalent to Oracle's materialized view or is there
I cannot understand the Oracle documentation. :-( Does anybody know how to fetch multiple
What are some Oracle gotchas for someone new to the platform, but not new
Oracle 11g version of ODP.Net introduces the provider model objects (session state provider, identity

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.