title: How to update MySql Database from threading in java
body: <p>Hi i have a java program which fetch json data from one website and we store that json data in our local Mysql database. From the local Mysql database we are using those values for some calculations. I wants to update my database after every 2 hours using API from the website. I don't know how to do that and I have never done it before. I can give the Structure of my database tell me if there is something i need to do in mysql data base or I have to use threading concept. Please suggest some tutorial or example.</p>
  
  <p>I have a table Student with fields <strong>First_name</strong>, <strong>last_name</strong> and <strong>Roll_no</strong> I have not included any time or date. tell me if someone have some idea regarding the problem I'm facing .
  I have used <strong>JDBC</strong> for database connection.
  Thanks In advance</p>