Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As documented under <a href="http://dev.mysql.com/doc/en/alter-table.html" rel="nofollow noreferrer"><code>ALTER TABLE</code> Syntax</a>:</p> <blockquote> <p>For <strong><code>ALTER TABLE <em>tbl_name</em> RENAME TO <em>new_tbl_name</em></code></strong> without any other options, MySQL simply renames any files that correspond to the table <strong><em><code>tbl_name</code></em></strong> without making a copy. (You can also use the <a href="http://dev.mysql.com/doc/en/rename-table.html" rel="nofollow noreferrer"><code>RENAME TABLE</code></a> statement to rename tables. See <a href="http://dev.mysql.com/doc/en/rename-table.html" rel="nofollow noreferrer">Section 13.1.32, “<code>RENAME TABLE</code> Syntax”</a>.) Any privileges granted specifically for the renamed table are not migrated to the new name. They must be changed manually.</p> </blockquote> <p>As documented under <a href="http://dev.mysql.com/doc/en/rename-table.html" rel="nofollow noreferrer"><code>RENAME TABLE</code> Syntax</a>:</p> <blockquote> <p><code>RENAME TABLE</code>, unlike <a href="https://dev.mysql.com/doc/en/alter-table.html" rel="nofollow noreferrer"><code>ALTER TABLE</code></a>, can rename multiple tables within a single statement:</p> <pre><code>RENAME TABLE old_table1 TO new_table1, old_table2 TO new_table2, old_table3 TO new_table3; </code></pre> <p><code>[ <strong><em>deletia</em></strong> ]</code></p> <p><code>RENAME TABLE</code> does not work for <code>TEMPORARY</code> tables. However, you can use <a href="http://dev.mysql.com/doc/en/alter-table.html" rel="nofollow noreferrer"><code>ALTER TABLE</code></a> to rename temporary tables.</p> <p><code>RENAME TABLE</code> works for views, except that views cannot be renamed into a different database.</p> </blockquote> <p>There are no other differences.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload