Renaming Tables


To rename a table, use the RENAME TABLE statement as follows:

Input

RENAME TABLE customers2 TO customers;

Analysis

RENAME TABLE does just that, it renames a table. Multiple tables may be renamed in one operation using the syntax:

RENAME TABLE backup_customers TO customers,              backup_vendors TO vendors,              backup_products TO products;




MySQL Crash Course
MySQL Crash Course
ISBN: 0672327120
EAN: 2147483647
Year: 2004
Pages: 214
Authors: Ben Forta

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net