Constraints in Table

SQL constraints are used to specify rules for the data in a table, We have following constraints NOT NULL – Indicates that a column cannot store NULL value Example CREATE TABLE employee ( emp_no int NOT NULL, emp_name varchar(255) NOT NULL, emp_address varchar(255) ); SQL restrict the “emp_no” column and the “emp_name” column to not…

Details