15 Program for Default Constraint in PostgreSQL

Program:

create table cars(id int, mileage int default 0);



insert into cars (id) values(1);



select * from cars;



insert into cars values(2,300);


Output:

Default Constraint in PostgreSQL


Previous
Next Post »