[英]MySQL Workbench 1064 error in syntax
MySQL Workbench created this code, not me. MySQL Workbench创建了此代码,而不是我。 I just used the GUI. 我只是使用GUI。
Operation failed: There was an error while applying the SQL script to the database.
Executing:
ALTER TABLE `isometr1_keyboard`.`records`
ADD CONSTRAINT `fk_records_layout_id`
FOREIGN KEY ()
REFERENCES `isometr1_keyboard`.`layouts` ()
ON DELETE NO ACTION
ON UPDATE NO ACTION;
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 ')
REFERENCES `isometr1_keyboard`.`layouts` ()
ON DELETE NO ACTION
ON UPDAT' at line 3
SQL Statement:
ALTER TABLE `isometr1_keyboard`.`records`
ADD CONSTRAINT `fk_records_layout_id`
FOREIGN KEY ()
REFERENCES `isometr1_keyboard`.`layouts` ()
ON DELETE NO ACTION
ON UPDATE NO ACTION
I don't understand where the error is. 我不知道错误在哪里。 Also don't understand why the GUI is creating code that is buggy. 还不明白为什么GUI会创建有错误的代码。
Did I make a mistake? 我做错了吗?
The data types of the columns were not matching. 列的数据类型不匹配。 This caused MySQL Workbench to create improperly formed code. 这导致MySQL Workbench创建格式不正确的代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.