12 Program for Unique Constraint in PostgreSQL

Program:

create table food(name  text unique,price int);



insert into food values('Apple',5);



insert into food values('Mango',5);



insert into food values('Apple',35);


Output:

Unique Constraint in PostgreSQL

Previous
Next Post »