title: How to make the value of another column in a table to be the value of the primary key column in the same table?
body: <p>I have a MySql Db_table called Branch with two fields i.e &quot;id&quot; and &quot;name&quot;. id is the primary key in this table. I want the value of the &quot;name&quot; column to be the value passed onto the &quot;id&quot;  column. For example, I need something like this: if name == &quot;cmc&quot; then id should be equal to &quot;cmc&quot; etc.</p>
  <pre><code> id  | name
  
   CMC | CMC
  </code></pre>
  <p>How can I achieve this?</p>