title: mysql - can i differentiate values of same column?
body: <p>Is there a way to make two or more same values in the same column to be different by database engine?
  Imagine that I have column like this:</p>
  
  <pre><code>id | votes 
  ----------
  1  |  20
  2  |  20
  3  |  19
  4  |  16
  5  |  15
  </code></pre>
  
  <p>I have to make all the votes different in that way that i increment first of two equal values, and substract other one.
  After one iteration my DB should look like this:</p>
  
  <pre><code>----------
  1  |  21
  2  |  19
  3  |  19
  4  |  16
  5  |  15
  </code></pre>
  
  <p>Because we still have two same values (id 2 and 3) we keep going with second iteration:</p>
  
  <pre><code>----------
  1  |  21
  2  |  20
  3  |  18
  4  |  16
  5  |  15
  </code></pre>
  
  <p>Can i update mysql database somehow to make that for me? Or should i select values, compare them in php and update?</p>
  
  <p>Thank you!</p>