Computer Science, asked by sohansharvin, 4 months ago

What is ‘Table constraint’? Give an example​

Answers

Answered by ItsBrainest
2

Explanation:

SQL constraints are used to specify rules for the data in a table. Constraints are used to limit the type of data that can go into a table. This ensures the accuracy and reliability of the data in the table. If there is any violation between the constraint and the data action, the action is aborted.

Answered by Anonymous
1

Explanation:

Uniquely identifies each row in a table. FOREIGN KEY - Uniquely identifies a row/record in another table. CHECK - Ensures that all values in a column satisfies a specific condition. DEFAULT - Sets a default value for a column when no value is specified.

Similar questions