SQL Not null Constraints

Advertisements

Prev Tutorial Next Tutorial

SQL Not null Constraints

Not null Constraints does not allow to enter null value on a particular column in a table. You can apply not null constraints on more than one column in same table.

Advantage of not null Constraints

If you do not enter the value in any particular column in the table that column automatically take null but by using not null constraints we can forcefully enter the value into the column.

This constraints allows to enter null value.

Example

	
create table employee
(eid number(3) unique,
ename varchar2(15) not null,
sal number(5));

Note: If you avoid the not null constraints property then it gives the following error messages "ora- cannot insert null".


Prev Tutorial Next Tutorial

Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Download Projects

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements