mysql修改表結構(alter table),多列/多字段

--建立測試表 create table test( id int; ); --add支持多列,change/drop須要在每列前添加關鍵字,逗號隔開,'column'無關緊要 --添加多列 alter table test add (c1 char(1),c2 char(1)); --正確,add支持多列 alter table test add column (c1 char(1),c2
相關文章
相關標籤/搜索