i am having one table
here username is there i want to create it as unique
how can
Printable View
i am having one table
here username is there i want to create it as unique
how can
You need to create an unique constraint on the field.
[QUOTE=boreddy;29057]i am having one table
here username is there i want to create it as unique
how can[/QUOTE]
u can use the following script
ALTER TABLE [I]TableName[/I]
ADD CONSTRAINT uk_username UNIQUE KEY (UserName)
---V V---
Vikas Vaidya
hi, using constraint at creation table. other we can use alter the particular column....
ALTER TABLE TableName
ADD CONSTRAINT uk_username UNIQUE KEY (UserName)