title: Using JOIN to INSERT INTO second Table with an Identical Id column as the first Table
body: <p>I have a Database (MySQL) that contains two tables with identical primary keys, I have already inserted data into the first table but I want to insert data into the second table at a later time. </p>
  
  <p>The logic I've got is: </p>
  
  <pre><code>[INSERT into Table2 (col1, col2, col3) Values (X1,X2,X3)  WHERE Table1.id equals Table2.id] 
  </code></pre>
  
  <p>I can't seem to find anything that works like this for an Insert Statement in use with PHP. </p>
  
  <p>Any help appreciated!</p>