I have a table in a MySQL database where one of your fields (email) is UNIQUE
, when inserting a record I must first make a select
checking if there is a record whose email field match the email I want to insert (remembering that the field is UNIQUE) or should I handle the generated exception? I'm using PDO.