create table BulletinInfo
(
bulletinId int primary key auto_increment not null,
bulletintitle varchar(100) not null,
bulletincontent text not null,
userId int foreign key(userId) references UserInfo(userId),
bulletincreateTime datetime default(getdate()) not null
)
这是我建 的表,系统报
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 'forei
gn key(userId) references UserInfo(userId),
bulletincreateTime datetime ' at line 5请问应该怎么改?
冉冉说
相关分类