Answers for "how unique field in table in phpmyadmin"

PHP
0

how unique field in table in phpmyadmin

1 ) ALTER TABLE  `foo` ADD UNIQUE ( `bar` )

or 

2 ) You do not have duplicates -> will apply the key without issues
You do have duplicates -> will give an error message, nothing happened to your data
All is unique, except several rows with NULL in them, unique constraint is still applied, as NULL is not checked when checking for unique values (you can have the entire table have a NULL value in a unique field without any error message).
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language