📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

If Email has a UNIQUE constraint, what happens on inserting a duplicate email?

A. The insert is rejected ✅
B. The duplicate is stored with a warning
C. The old row is deleted
D. The email is changed automatically

Correct Answer: A. The insert is rejected

Explanation

A UNIQUE constraint enforces uniqueness, so a duplicate value causes the insert to fail.