title: MySQL if value exists select else insert
body: <p>What is the most efficient mysql query to SELECT from a table IF a value already exists ELSE INSERT?</p>
  
  <p>I have already tried several options but can't find something that works for me.</p>