title: Mysql: RENAME TABLE IF EXISTS
body: <p>This <code>DROP TABLE IF EXISTS</code> works, too bad that <code>RENAME TABLE IF EXISTS</code> doesn't work.</p>
  
  <p>Can anyone suggest a solution for this query?</p>
  
  <pre><code>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF EXISTS video_top_day TO video_top_day_for_delete' at line 1
  </code></pre>
  
  <p>query:</p>
  
  <pre><code>RENAME TABLE IF EXISTS video_top_day TO video_top_day_for_delete
  </code></pre>