我在 EER 图中创建了我的关系,我想在我的桌子上看到外键。我读了这篇文章
但是当我这样做时,会出现这样的错误:
Executing SQL script in server
ERROR: Error 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 '(11) NOT NULL AFTER `UserId`
, DROP PRIMARY KEY
, ADD PRIMARY KEY (`AddressId' at line 1
ALTER TABLE `kobiakinlar`.`address` ADD COLUMN `user_UserId` (11) NOT NULL AFTER `UserId`
, DROP PRIMARY KEY
, ADD PRIMARY KEY (`AddressId`, `user_UserId`)
, ADD INDEX `fk_address_user_idx` (`user_UserId` ASC)
SQL script execution finished: statements: 3 succeeded, 1 failed
如何将我的表与 EER 图同步。