How to create table with primary key and other columns in PostgreSQL

1 Answer

0 votes
CREATE TABLE public."YourTableName"
(
    "ID" bigserial NOT NULL,
    "FirstName" character varying(50),
    "LastName" character varying(50),
    PRIMARY KEY ("ID")
);

ALTER TABLE public."YourTableName"
    OWNER to postgres;

 



answered Apr 24, 2020 by avibootz
...