show tables in psql code example
Example 1: show table postgres command
PostgreSQL show tables command
\dt
Example 2: postgresql show all tables
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public'
ORDER BY table_name;
Example 3: show all tables postgres
\dt
# show list of tables in postgres
Example 4: show details of table postgres
postgres=# \d tablename;