postgres SHOW TABLES code example

Example 1: get all tables postgres

SELECT * FROM pg_catalog.pg_tables;

Example 2: show indexes mysql

SHOW INDEX FROM yourtable;

Example 3: show table postgres command

PostgreSQL show tables command
	
\dt

Example 4: postgresql list db

postgres=# \l

Example 5: sql show tables

Showing all table: 
show tables;

Showing table data:
SELECT
* or column_names
FROM
table_name;

Example 6: postgresql show all tables

SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'public'
ORDER BY table_name;

Tags:

Sql Example