Comments - Foreign Keys

4 years, 5 months ago John Doe
This comment has the status of 'removed' and can only be seen by you.

Please correct the following sentence in section Syntax: "The referenced columns must be a PRIMARY KEY or a UNIQUE index."

This is not, in fact, true as the reference column in the parent table only needs to be a prefix of an index (primary key, uniqe and plain index all satisfy this).

 
2 years, 1 month ago Michael Widenius

Fixed. Sorry for the delay.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.