14 Program for Serial Constraint in PostgreSQL

Program:

create table books( ID serial primary key, name text);



insert into books (name) values('Book1');



insert into books (name) values('Book2');



select * from books;



Output:

Serial Constraint in PostgreSQL

Previous
Next Post »