跳到主要内容

修改列

2024年06月12日
柏拉文
越努力,越幸运

一、认识


二、语法


2.1 编辑列名

alter table [tableName] change column [old_columnName] [new_columnName] newDataType;

2.2 编辑列默认值

alter table [tableName] alter [column] set default xxxx;

2.3 编辑列数据类型

alter table [tableName] modify column [columnName] newDataType;