我正在尝试将列添加到现有的用户表中,但它不起作用。我得到:MySQL alter table命令不起作用
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unsigned default 0 after users_id' at line 1
这里是我的命令:
[email protected]:test> alter table users add column users_is_active tinyint(3) not null unsigned default 0 after users_id;
,除非我并没有说明“不空”正确,我在做什么错? 由于
你能试换不空和无符号彼此? – spicavigo