Home > Database > Mysql Tutorial > body text

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

WJ
Release: 2020-05-30 16:47:56
Original
4140 people have browsed it

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;
Copy after login

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

Download address://m.sbmmt.com/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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!