I have the following table named information.

As you see in the previous table there is column named number, this column has a many duplicate values.
What I want is, if the row is duplicate, update its tab cell to 1, otherwise, leave it as it is 0.
The following is what I done.
$query = mysql_query("UPDATE information SET tab='1' WHERE number = (SELECT distinct number FROM information)");