What is the purpose of a check constraint in a database schema?

  • Defines relationships between tables
  • Enforces unique values in a column
  • Sets default values for columns
  • Validates data against a specified condition
A check constraint in a database schema is used to validate data against a specified condition. It ensures that values in a column meet specific criteria, providing a way to control and maintain data integrity.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *