Wednesday , January 17 2018
Home / DataBase / SQL SERVER / Create Not Null Constraint in sql Server

Create Not Null Constraint in sql Server

Create Not Null Constraint in sql Server:

Not Null: If it is imposed on a column that column will not allow Null Values into it; this can be imposed on any no of columns.

Syntax:-

Example:-
Explanation:-  The above Example Explains you the Empid Column Not allowed Null Values, If You are trying to insert Null values It throws an error  and also Same as Salary Column.

Print Friendly, PDF & Email

Give us your valuable feedback

comments

About Samba

Check Also

Find all rows count and columns count in single database in sql server

In General for any database it contains lot of tables, if we want to find …

%d bloggers like this: