Reputation: 6086
Is it possible to create a MySQL index that drops records unless one of n fields is not null?
I know Multiple-Column Indexes exists but would this be possible?
Upvotes: 0
Views: 36
Reputation: 12221
MySQL does not support filtered/conditional indexes. See this answer for more details: https://dba.stackexchange.com/questions/43/how-to-create-a-conditional-index-on-mysql
Upvotes: 1