title: PL/SQL: Decide if insert or update a row in a trigger, which is the best way?
body: <p>I need to write a trigger in Oracle PL/SQL (11g) before inserting each row that checks if a row exists: if it doesn't exists creates a new row, if it does exists updates the existing record.</p>
  
  <p>Which is the best way to do that? </p>
  
  <p>Thanks, Gianluca</p>