in reply to INSERT or UPDATE, but only when unique

YAWTDI is to UPDATE first and then if no rows were updated do the INSERT.
  • Comment on Re: INSERT or UPDATE, but only when unique