I have a mysql table that contains field_one, field_two, field_three
I want to check if field_one contains a duplicate value (like if it was unique).
How to do that in mysql?
Thanks
This will show you values for field_one that occur more than once:
select field_one, count(*) as Count
from MyTable
group by field_one
having count(*) > 1
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With