Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Is there an easy way to check for any records in a table that breaks any constraint?

The constraint was created on a populated table using "foreign_key_checks=0".

share|improve this question

1 Answer 1

Um, query for them? Hint: NOT EXISTS.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.