what is the different between unique+not null & primary key,

Answer Posted / mohan babu

A unique key is nothing but it does not allow any
duplicateds but allows nullvalues

A primary key is nothing but it does not allow duplicates
as well as Null values i.e Not Nulls

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints

891


What are primary key and foreign key and how they work?

788


give the syntax of grant and revoke commands? : Sql dba

871


how tsql statements can be written and submitted to the database engine? : Transact sql

766


How many rows can sqlite handle?

841


how to get @@error and @@rowcount at the same time? : Sql dba

804


How do I tune a sql query?

782


Is it possible to link two groups inside a cross products after the cross products group has been created?

804


What is difference between inner join and self join?

854


What is difference between mysql and postgresql?

769


difference between anonymous blocks and sub-programs.

890


What is synchronized subquery?

885


What is database migration?

750


What is autocommit sql?

768


What is cursor explain with example?

782