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.
In reply to Re: Of Mysql, DBI and PK best practices
by herveus
in thread Of Mysql, DBI and PK best practices
by jimbus
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |