Help for this page

Select Code to Download


  1. or download this
    $dbh->do('insert into foo values (x,y,z)');
    if ($dbh->err && $dbh->err == 1062) {
       # we've got a duplicate
    }
    
  2. or download this
    $dbh->do('replace foo values (x,y,z)');