有时候的表名称需要更换,在没有数据库工具的情况下可以用命令来修改
重命名表
基本形式: alter table 表名 rename 新表名;
示例:
把
students 重命名为
workmates
重命名 students 表为 workmates: alter table students rename workmates;
有时候的表名称需要更换,在没有数据库工具的情况下可以用命令来修改
重命名表
基本形式: alter table 表名 rename 新表名;
示例:
把
students 重命名为
workmates
重命名 students 表为 workmates: alter table students rename workmates;
评论前必须登录!
立即登录