MySQL: unique index not respecting `null` values
问题 I am having trouble creating a unique index respecting null -values in MySQL v5.6.20. I checked similar answers here. but couldn't solve my problem with them. Desired behavior I want a table which has references to three other table ( date_list_assignment ). The purpose of the table is the mapping of date_list -entries to course categories and/or date_list categories. The first column is therefore mandatory, while the latter two are not. If the latter two are null the date list entries is