0

I work with SQL Server and haven't had such an issue adding a FK to a table like I am having with MySQL. The datatypes match up, the foreign key table contains 300K rows, and is taking forever to execute and eventually times out. Am I doing something wrong? I did this in Workbench and Toad, same thing happens.

The relationship is a one to one, with the User table primary key ID being used a a FK for the District Admins table primary key ID.

I dont know how to find the MySQL version, and can't tell you the amount of memory.

4

1 回答 1

0

发现问题是表格排序规则不同。我的新表使用的是 latin1,但现有的表使用的是 UTF8。这就是我依靠 Workbench 得到的结果。

于 2012-04-17T17:13:11.883 回答