in reply to mysql insert/update
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
|
|---|