in reply to Of Mysql, DBI and PK best practices
The alternative is to first select the PK from the table. If you get a result, then you do the update, otherwise do the insert. That means that errors will be real errors. That means you always execute two statements, but your normal condition is that there are no errors.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Of Mysql, DBI and PK best practices
by kyle (Abbot) on Apr 17, 2007 at 14:34 UTC |