开发者

Is it possible to rename a MySQL table name already in the database?

开发者 https://www.devze.com 2022-12-09 07:12 出处:网络
开发者_StackOverflowIs it possible to rename a MySQL table? If so, how?You can use RENAME TABLE RENAME TABLE `foo` TO `bar`;

开发者_StackOverflowIs it possible to rename a MySQL table? If so, how?


You can use RENAME TABLE

RENAME TABLE `foo` TO `bar`;

or ALTER TABLE

ALTER TABLE `foo` RENAME TO `bar`;


If you're using MySQL Query Browser, you can just right-click on the table, select Edit Table and change the Table Name field and apply the changes.

0

精彩评论

暂无评论...
验证码 换一张
取 消