title: Must database primary keys be integers?
body: <p>I always see MySQL database primary keys as integers. Is that because primary keys must be integers, or because of ease of use when setting <code>auto_increment</code> on the column?</p>
  
  <p>I am wondering just in case I want my primary key to be a <code>varchar</code> in the future.</p>