Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 419 Bytes

File metadata and controls

23 lines (17 loc) · 419 Bytes

Postgresql cli commands

\l -- to list database
\c -- to use database
\dt -- to list tables

Creating enum and using enum package

-- require pg contrib to be installed.
CREATE EXTENSION IF NOT EXISTS "pg_enum";

Alter column

alter table listed_companies add column ipoalloted_date date null
add column total_listed_share number(11) null
add column public_holding number(2) null