1 vote

MySQL, possible to prevent two fields to be NULL or NOT NULL?

I don't think it's possible. I would catch such cases in the front-end where the user enters the data. Also, you can perhaps replace both fields with two other fields: A category field of type enum ...
Tommiie's user avatar
  • 5,677

Only top scored, non community-wiki answers of a minimum length are eligible