With help
or h
below, I could show the SQL commands as shown below:
help
Or:
h
postgres=# help
Available help:
ABORT CREATE USER
ALTER AGGREGATE CREATE USER MAPPING
ALTER COLLATION CREATE VIEW
ALTER CONVERSION DEALLOCATE
ALTER DATABASE DECLARE
ALTER DEFAULT PRIVILEGES DELETE
ALTER DOMAIN DISCARD
ALTER EVENT TRIGGER DO
ALTER EXTENSION DROP ACCESS METHOD
ALTER FOREIGN DATA WRAPPER DROP AGGREGATE
ALTER FOREIGN TABLE DROP CAST
ALTER FUNCTION DROP COLLATION
ALTER GROUP DROP CONVERSION
ALTER INDEX DROP DATABASE
ALTER LANGUAGE DROP DOMAIN
...
Now, how can I show the backslash commands in PostgreSQL like l
, dt
, q
, h
, etc?
2
Answers
With
?
below, you can show the backslash commands in PostgreSQL as shown below:Simply write these in your terminal
To list databases: l
To list tables: dt
To quit PostgreSQL: q
To access help: h