修改数据库表名

https://jingyan.baidu.com/article/066074d61bd60ac3c21cb08d.html

  1. “show tables ;”可以显示您这个库中的表。

  2. “ rename table 旧表名 to 新表名;”修改您的表名。
  3. 代码如下

SELECT * FROM crm_28.cst_customer;
show tables;
rename table cst_customer to cust_customer;

 

posted @ 2019-04-25 20:18  Monica_维维  阅读(833)  评论(0编辑  收藏  举报