title: MySql - Insert only if some fields are not insered yet
body: <p>I have a MySql table, with field1(id), field2(name) and field3(surname).</p>
  
  <p>Id like to insert the value only if the pair field2 and field3 are not already insered. How can I do it?</p>
  
  <p>INSERT IGNORE doesnt work because the field1 is int autoincrement and every INSERT is different.</p>
  
  <p>P.S. I'd like to get rid about REPLACE INTO, because it doesnt make sense "rewrite" data if it already exist</p>
  
  <p>Cheers</p>
  
  <p>EDIT</p>
  
  <p>Table structure
  id = INT primary
  name = VARCHAR 
  surname = VARCHAR</p>
  
  <p>name and surname can't be each UNIQUE (i can have 2 name or surname with the same values). What i want is that the pair name and surname haven't the same value.</p>
  
  <p>es :</p>
  
  <p>0 Marco Cordi (OK)</p>
  
  <p>1 Marco Daghine (OK)</p>
  
  <p>2 Fabio Cordi (OK)</p>
  
  <p>3 Marco Cordi (NOT OK, is already definied)</p>