![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all... Getting back into SQL Anywhere after being away awhile, so please forgive the newbie-ish question. I'm wanting to add a unique contraint to a column... I've found examples using "CREATE TABLE" syntax, but for some reason, I'm having trouble finding syntax for adding column uniqueness using "ALTER TABLE syntax. Any ideas? Thanks... __________ Information from ESET NOD32 Antivirus, version of virus signature database 4710 (20091222) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |
#3
| |||
| |||
|
|
This should add a unique constraint to a column: ALTER TABLE table_name ADD UNIQUE (column_name); SQL Antwhere wrote: Hi all... Getting back into SQL Anywhere after being away awhile, so please forgive the newbie-ish question. I'm wanting to add a unique contraint to a column... I've found examples using "CREATE TABLE" syntax, but for some reason, I'm having trouble finding syntax for adding column uniqueness using "ALTER TABLE syntax. Any ideas? Thanks... __________ Information from ESET NOD32 Antivirus, version of virus signature database 4710 (20091222) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4710 (20091222) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |