Can we use more than one null value for unique key?
Answer Posted / hassan khan
A unique key constraint does not imply the NOT NULL
constraint in practice. Because NULL is not an actual value
(it represents the lack of a value), when two rows are
compared, and both rows have NULL in a column, the column
values are not considered to be equal. Thus, in order for a
unique key to uniquely identify each row in a table, NULL
values must not be used. According to the SQL standard and
Relational Model theory, a unique key (unique constraint)
should accept NULL in several rows/tuples — however not all
RDBMS implement this feature correctly.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the command used to fetch the first 5 characters of a string?
Why do we need sharding?
Are sql database names case sensitive?
Why is sql*loader direct path so fast?
What do we need to check in database testing?
what is the difference between a web-garden and a web-farm? : Sql dba
How is use pl and sql?
Can we alter stored procedure?
what is a materialized view? : Sql dba
Which is better join or inner query?
What are the two types of exceptions in pl/sql?
What are the different types of functions in sql?
How can you view the errors encountered in a trigger?
How to run sql statements with oracle sql developer?
what are the disadvantages of mysql? : Sql dba