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

Related questions

1 answer 201 views
1 answer 213 views
1 answer 184 views
184 views asked Apr 23, 2020 by avibootz
...