有时候的表名称需要更换,在没有数据库工具的情况下可以用命令来修改
重命名表
基本形式: alter table 表名 rename 新表名;
示例:
把
students 重命名为
workmates
重命名 students 表为 workmates: alter table students rename workmates;
时间: 2020-09-23|tag:MYSQL之怎么重命名表|12次围观|0 条评论
有时候的表名称需要更换,在没有数据库工具的情况下可以用命令来修改
重命名表
基本形式: alter table 表名 rename 新表名;
示例:
把
students 重命名为
workmates
重命名 students 表为 workmates: alter table students rename workmates;
还没有人抢沙发呢~