mysql set field unique
ALTER TABLE mytbl ADD UNIQUE (columnName);
mysql set field unique
ALTER TABLE mytbl ADD UNIQUE (columnName);
mysql alter table set column unique
ALTER TABLE contacts
ADD CONSTRAINT contacts_unique UNIQUE (reference_number);
how to add unique key constraint in mysql
-- Add a Unique constraint and deifine the constraint name
ALTER TABLE TABLENAME
ADD CONSTRAINT UQ_tblPerson_Email UNIQUE(COLUMN_NAME)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us