char爲定長字符串mysql
var爲可變字符串sql
修改表名:rename table1 to table2;(mysql)oracle
alter table1 rename to table2(oracle)函數
新增列名:alter table product(表名)add column product_1 varchar(40) not null,add column product_2;(mysql)字符串
alter table product (表名) add (product_1 varchar(40) not null,product_2);(oracle)table
alter table product (表名) drop column product_1,drop column product_2;數據
alter table product (表名) drop (prodict_1,product_2);dict