title: Transfer data from one table to another table
body: <p>Can anybody help me to create a good way to transfer data from one table to another table?</p>
  
  <p>For example:</p>
  
  <p><strong>table1</strong></p>
  
  <pre><code>ID | Name
  
  1  | Juan
  2  | Two
  </code></pre>
  
  <p><strong>table2</strong></p>
  
  <pre><code>(no content)
  </code></pre>
  
  <p>What I want is a loop that will transfer the data of <code>table1</code> to <code>table2</code>. While not all data of <code>table1</code> is transferred to <code>table2</code> the loop continues.</p>