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

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

    SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
  2. “ rename table 旧表名 to 新表名;”修改您的表名。
  3. 代码如下

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

 修改数据库表名 随笔

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄