Define SQL constraints

SQL constraints are the set of rules that impose some restriction while insertion, deletion or updation of data in the databases.In SQL we have both column level as well as table level constraints which are applied at columns and tables respectively. Some of constraints in SQL are – Primary Key, Foreign Key, Unique Key, Not NULL, DEFAULT, CHECK and Index constraint.

Leave a Reply

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