title: SQL query to Insert on Condition
body: <p>I have a table <code>A</code> with column say <code>id</code> and attributes in this <code>id</code>: <code>1 to 20 or any others</code>. I want a SQL query in such a way that <code>Query</code> will search for the particular <code>id</code> into the column say 11 then perform some action otherwise insert a new row with that (11) value.</p>
  
  <p>In short</p>
  
  <pre><code>Search 11 in id if found then update 11 to 12 otherwise insert 11 into id
  </code></pre>