title: Oracle : How to replace a table by another table
body: <p>I am having two tables with exact same schema(<code>table_from</code> and <code>table_to</code>).Now I need to copy the data of <code>table_from</code> to table <code>table_to</code> in a way that only values of <code>table_from</code> will be there in both tables.</p>
  
  <p><strong>table_to:</strong></p>
  
  <pre><code>id    name    desc
  -----------------------
  1     a       abc
  2     b       def
  3     c       adf
  </code></pre>
  
  <p><strong>table_from:</strong></p>
  
  <pre><code>id    name    desc
  -----------------------
  1     x       123
  2     y       345
  </code></pre>
  
  <p><strong>Now after replacement, the 'table_to' should be.</strong></p>
  
  <pre><code>id    name    desc
  -----------------------
  1     x       123
  2     y       345
  </code></pre>