有什么我想念的吗?谢谢:))
错误
SQL查询:
ALTER TABLE `venues`
ADD `IF_AIRCONDITIONING` BOOLEAN( 1 ) NOT NULL DEFAULT '0'
, ADD `IF_LIVE_MUSIC` BOOLEAN( 1 ) NOT NULL DEFAULT '0'
, ADD `IF_TABLE_FOOTBALL` BOOLEAN( 1 ) NOT NULL DEFAULT '0'
MySQL说:文档
#1064 - 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
'(1) NOT NULL DEFAULT '0', ADD `IF_LIVE_MUSIC` BOOLEAN(1) NOT NULL DEFAULT '0', ' at line 1
答案 0 :(得分:1)
尝试删除DEFAULT '0'
中0左右的引号,或使用FALSE
或false
(也不带引号)
此外,您不必为布尔字段指定长度,请尝试删除( 1 )