11 Program for Not Null Constrain in PostgreSQL

Program:

create table people(name text, age int not null);



insert into people values('Jim', 40);



insert into people values('John', NULL);



insert into people values(NULL, 40);


Output:

Not Null Constrain in PostgreSQL

Previous
Next Post »