17
201201
mysql alter 操作
网络生活
NO COMMENTS
转自:http://www.sablog.net/blog/archives/551/
//主键
alter table tabelname add new_field_id int(5) unsigned default 0 not null auto_increment ,add primary key (new_field_id);
//增加一个新列
alter table t2 add d timestamp;
alter table infos add ex tinyint not null default '0';