sql能用alter table修改列名吗

来源:百度知道 编辑:UC知道 时间:2024/07/01 03:15:28
谢谢

不能
他只能修改列属性,比如类型、长度、默认值
据我所知,没有修改列名的SQL
不过你可以备份数据后,删除后再加

可以哇
alter table 表名 rename column 旧列名 to 新列名