C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » SQL Server »

Unique Key


Posted Date: 04 Nov 2009      Posted By: baskar.m      Member Level: Silver     Points: 1   Responses: 5



can you tell me any suituation where we will store NULL value for the Column which is UNIQUE KEY?




Responses

Author: vipul    04 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hi,
if you define any column as "UNIQUE KEY" you can store null value in that by default.

Please Rate This Answer If They Helpful

Thanks & Regards
Patel Vipul



Author: Anil Kumar Pandey    04 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

if there is only a single record having NULL values.. if multiple records are having NULL value UNIQUE constraint will be violated as there are multiple common values..

Thanks & Regards
Anil Kumar Pandey



Author: Melchior    04 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

UNIQUE Key will allow any data (whether it is NULL or Not) only once.


Author: Manick    04 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

If u defined a Column as Unique, it will allow only one 'NULL' value.
Also it will not allow duplicate values.

Regards,
Manick



Author: sriram    23 Nov 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

In Unique Key u can able to store only one Null values ..
u cant to store more null values..


Sriramramaswamy



Post Reply
You must Sign In to post a response.
Next : What is the difference between sql and plsql?Explain?
Previous : Difference between view and table?
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use