Prepare for your Next Interview
This is a discussion on How can we create unique key within the SQL Server forums, part of the Databases category; i am having one table here username is there i want to create it as unique how can...
|
|||
|
Re: How can we create unique key
Quote:
ALTER TABLE TableName ADD CONSTRAINT uk_username UNIQUE KEY (UserName) ---V V--- Vikas Vaidya |
|
|||
|
Re: How can we create unique key
hi, using constraint at creation table. other we can use alter the particular column....
ALTER TABLE TableName ADD CONSTRAINT uk_username UNIQUE KEY (UserName) |
| The Following User Says Thank You to parepalli9 For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| what is unique key | priyasp_msit | SQL Server | 3 | 04-22-2008 04:45 AM |
| Unique key and Single Query | mail2das.ashok | SQL | 2 | 02-11-2008 03:53 AM |
| English Words which are Unique | K.K.Rajiv | Brainteasers | 12 | 12-15-2007 12:31 AM |
| unique login name | smita76 | Unix/Linux | 1 | 12-09-2007 02:09 PM |
| Unique with NotNull?? | vcyogi | SQL Server | 2 | 06-08-2007 09:15 AM |