【发布时间】:2012-04-13 16:40:13
【问题描述】:
我正在尝试在另一列之后添加一列,同时还指定默认值。以下是我的尝试,但不起作用。
alter table pageareas add content_userDefined BIT( 1 ) NULL default 0 after content;
如果我删除“后内容”,它会起作用:
alter table pageareas add content_userDefined BIT( 1 ) NULL default 0;
如果我删除“默认 0”,它会起作用:
alter table pageareas add content_userDefined BIT( 1 ) NULL after content;
如何在指定列之后添加它同时定义默认值?
我正在使用 MySql 5.1.36
【问题讨论】:
标签: mysql database alter-table