Yes, either you do a select first to find out if the row exists, or you just go ahead with an insert, and should that fail for the reason you expected, follow up with the update statement. Or the other way round. Quick and dirty.
Cheers, Sören
In reply to Re: mysql insert/update
by Happy-the-monk
in thread mysql insert/update
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |