title: How to overwrite Database on MySQL Foreign key
body: <p>I created a simple 2 tables to experiment foreign keys, but when I input values into the Foreign table it does not overwrite current columns.</p>
  <pre><code>create table testing2 (balance bigint, stud int, FOREIGN KEY (stud) REFERENCES testing(stud));
  insert into testing2 values ('4000','0','1');
  insert into testing2 values ('4000','2000','1');
  </code></pre>
  <p>The result would show all the values inserted, I want to overwrite it on my last insert</p>