mysql set field unique
ALTER TABLE mytbl ADD UNIQUE (columnName);
mysql set field unique
ALTER TABLE mytbl ADD UNIQUE (columnName);
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;
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