MySQL: Insert if doesn’t exist otherwise update the existing row
A good practice of increasing SQL efficiency is to reduce the number of separate queries as much as possible. In a situation where you want a row updated if it exists and inserted if it doesn’t may take a newbie MySQL developer to write 2 independent queries, namely: first, check if the row exists with …
MySQL: Insert if doesn’t exist otherwise update the existing row Read More »