Home » RDBMS Server » Server Administration » Unique constraint Problem
Unique constraint Problem [message #371909] Tue, 19 December 2000 09:03 Go to next message
ramesh
Messages: 123
Registered: August 2000
Senior Member
I have a column in a table which is Nullable.
I want to use ALTER TABLE command to change this column to UNIQUE.
Is this possible?
Re: Unique constraint Problem [message #371936 is a reply to message #371909] Fri, 22 December 2000 12:11 Go to previous messageGo to next message
Kathy
Messages: 10
Registered: October 2000
Junior Member
yes possible,provided there are no two values(except nulls.) are same in that field.
Refer oracle concepts manual.
Re: Unique constraint Problem [message #371937 is a reply to message #371909] Fri, 22 December 2000 22:58 Go to previous messageGo to next message
ramesh
Messages: 123
Registered: August 2000
Senior Member
Thanks Kathy.
Can u do me a favor? I do not have access to a copy of the concepts manual.
Can u send me a code snippet??
It will be very useful.
Thanks.
Re: Unique constraint Problem [message #371938 is a reply to message #371909] Fri, 22 December 2000 22:59 Go to previous messageGo to next message
ramesh
Messages: 123
Registered: August 2000
Senior Member
Thanks Kathy.
Can u do me a favor? I do not have access to a copy of the concepts manual.
Can u send me a code snippet??
It will be very useful.
Thanks.
Re: Unique constraint Problem [message #371950 is a reply to message #371909] Tue, 26 December 2000 15:34 Go to previous message
Kathy
Messages: 10
Registered: October 2000
Junior Member
hope this will help you.

ALTER TABLE table_name
ADD CONSTRAINT constraint_name
UNIQUE(column_name)
Previous Topic: VIEWS and Stored Procedure
Next Topic: Please help us ....
Goto Forum:
  


Current Time: Fri May 17 11:35:53 CDT 2024