Home >Database >Mysql Tutorial >What is the statement to modify the table name in MySQL?

What is the statement to modify the table name in MySQL?

WJ
WJOriginal
2020-05-30 16:47:564188browse

What is the statement to modify the table name in MySQL?

The key statement to modify the MySQL table name statement "RENAME TO"

The syntax is as follows:

ALTER TABLE 表名1 RENAME TO 表名2;

First open mysql Tool (take Navacate for mysql as an example)

Download address:https://www.php.cn/xiazai/gongju/757

Then select the database to be tested, click [Query]-》[New Query]

Then enter the sql statement to modify the table name

What is the statement to modify the table name in MySQL?

Finally click " Run" to see if the table name changes.

What is the statement to modify the table name in MySQL?

Related references:php MySQL Tutorial

The above is the detailed content of What is the statement to modify the table name in MySQL?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn