How to modify the table

1 Modify the table name:

alter table old table name rename [to] new table name;

2 Modify the data type of the field

alter table table name MODIEY attribute name data type;

3 Add fields in the table

alter table table name add attribute name 1 data type [integrity constraint] [first| after attribute name 2];

4 Delete fields in a table

alter table table name drop attribute name;

5 Modify the field names in the table

alter table table name change old attribute name new attribute name new data type;

 

Guess you like

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