Database - Modify Field Type and Length

Standard SQL modify field type and length statement:

ALTER TABLE tableName modify column columnName 类型;

For example, Mysql's modify field type statement:

alter table test modify column name varchar(255);

 

Oracle modify field type and length statement:

ALTER TABLE tableName modify(columnName 类型);

E.g

alter table test modify(name varchar(255));

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326527654&siteId=291194637