I am trying to create a foreign key between tables using MySQL Workbench. But I don’t know why I can’t check the box to select a field to map to another field in another table. Maybe this requires that both fields have the same type (and different conditions?) So, can you tell me the criteria for creating relationships using a foreign key and how to do it in MySQL Workbench?
I am not a MySQL Workbench user, but make sure you use a storage engine that primarily supports foreign keys. (e.g. InnoDB)
. MySQL , .
. , , , , . unsigned int int , . , - , .
. :
, , " next", .
sql script . : fk. "". script. , , .
EER " ". . (Workbench 5.2.36)
I have a problem with MySql Workbench. I have one char (5) (in table 1) as my primary key, and another char (5) (in table 2) as a foreign key. But MySql Workbench will not let me create relationships. I am using INNODB.
Source: https://habr.com/ru/post/1732048/More articles:Is this login scheme safe? - loginAutomatically set parent link for child elements - c #Rack installation error. Server does not start - profilingLinq to SQL Writes Translatable Functions - c #Multiple statements in a loop with if else - objective-cGetting some elements in a string using regex - ruby | fooobar.comI am trying to write a .NET compiler using System.Reflection.Emit, how do I make type resolution? - compiler-constructionWITH#/. Net: return file to browser? - c #JQuery Media Plugin, воспроизводящий файл вне webroot - javascriptIs there a reliable way to recognize IOExceptions caused by locked files other than parsing the .message attribute? - .netAll Articles