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://10.200.1.11:23101/article/api/json?id=326555264&siteId=291194637