1
我有3个表:(MySQL的)主键W/2相同的外键
Users: _id_, username
Movies: _id_, title
Friends: _#id1, #id2_, accepted
我与InnoDB的,一切都是那样工作。但是,即使朋友主键(users.id,users.id),2行像被MySQL接受:
1) (1, 2)
2) (2, 1)
有没有考虑这些2行作为一个重复键的方式MySQL?
感谢您的帮助。
谢谢,这很好。 – Max13 2012-03-09 10:43:19