what is the different between unique+not null & primary key,
Answer Posted / suresh babu
Unique:
Unique is a constraint,which doesn't allow the duplicate
values and allow only one null value.We can create more
number of unique constraint in single table.
Not Null:
Not Null constraint,which doesn't allow the Null values and
allow the duplicate values.
Primary Key:
We can create one primary key for a table,Which doesn't
allow the duplicate and null values,and used for make a
foreign key relation.we can't do this process using above
two constraints.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is compute?
What is the need of a partition key?
What is user in sql?
What is oracle sql called?
What is query optimization in sql?
What are the packages in pl sql?
what is 'mysqlimport'? : Sql dba
How you can copy a file to file content and file to pl/sql table in advance pl/sql?
what is the bond code in materialized view?
Does sql require a server?
What is the default isolation level in sql server? : Transact sql
What is an inner join sql?
What is trigger in sql? Explain
What is difference between rank () row_number () and dense_rank () in sql?
Can you join views in sql?