MYSQL Update if data exists else insert

I was writing some database code based on a weather forecast issued every day. Each new set of data has a total of 89 hours; 24 hours of completely new data to be appended to the end of the datbase table and the rest data needs to be inserted.

Here’s a link to how I did it.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>