Answers for "mysql make column unique on table creation"

SQL
1

mysql query unique column

SELECT DISTINCT(column_name) FROM your_table_name;

#You can select distinct values for one or more columns. The column names has to be separated with comma.
SELECT DISTINCT column_name_1, column_name_2 FROM your_table_name;
Posted by: Guest on May-03-2021
1

mysql alter table set column unique

ALTER TABLE contacts
ADD CONSTRAINT contacts_unique UNIQUE (reference_number);
Posted by: Guest on June-17-2020

Code answers related to "mysql make column unique on table creation"

Code answers related to "SQL"

Browse Popular Code Answers by Language