I have a mysql table containing field_one , field_two , field_three
field_one
field_two
field_three
I want to check if field_one contains a duplicate value (for example, if it was unique).
How to do this in mysql?
thanks
This will show you the values ββfor field_one that occur more than once:
select field_one, count(*) as Count from MyTable group by field_one having count(*) > 1
select field_one from tblName where field_one like %'@field_one'%
or
select field_one from tblName where field_one = @filed_one