LMSouq
database Open

Does MySQL ignore null values on unique constraints?

HU
Hugo Mota
1 month ago
3 views
Problem Description
I have an email column that I want to be unique. But I also want it to accept null values. Can my database have 2 null emails that way?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base