title: MySQL drop foreign key constraint only if it exists
body: <p>Been looking for almost an hour now, and i can't believe i haven't figured out how to do this yet.  I've found this:</p>
  
  <p><a href="https://stackoverflow.com/questions/544825/drop-constraints-only-if-it-exists-in-mysql-server-5-0">Drop constraints only if it exists in mysql server 5.0</a></p>
  
  <p>but the link offered there is not enough info to get me there.. Can someone offer an example with code, please?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Sorry i wasn't clear in the original question, but i was hoping for a way to do this in just SQL, not utilizing any application programming.</p>