Click here to Skip to main content
15,885,216 members
Home / Discussions / Database
   

Database

 
AnswerRe: Get all tables under a database in Postgre Pin
Victor Nijegorodov13-Jan-22 6:05
Victor Nijegorodov13-Jan-22 6:05 
GeneralRe: Get all tables under a database in Postgre Pin
_Flaviu13-Jan-22 6:45
_Flaviu13-Jan-22 6:45 
GeneralRe: Get all tables under a database in Postgre Pin
Victor Nijegorodov13-Jan-22 6:57
Victor Nijegorodov13-Jan-22 6:57 
GeneralRe: Get all tables under a database in Postgre Pin
_Flaviu13-Jan-22 21:24
_Flaviu13-Jan-22 21:24 
GeneralRe: Get all tables under a database in Postgre Pin
Victor Nijegorodov13-Jan-22 21:28
Victor Nijegorodov13-Jan-22 21:28 
GeneralRe: Get all tables under a database in Postgre Pin
_Flaviu14-Jan-22 0:01
_Flaviu14-Jan-22 0:01 
GeneralRe: Get all tables under a database in Postgre Pin
CHill6014-Jan-22 1:16
mveCHill6014-Jan-22 1:16 
GeneralRe: Get all tables under a database in Postgre Pin
_Flaviu14-Jan-22 1:47
_Flaviu14-Jan-22 1:47 
GeneralRe: Get all tables under a database in Postgre Pin
Victor Nijegorodov14-Jan-22 2:05
Victor Nijegorodov14-Jan-22 2:05 
GeneralRe: Get all tables under a database in Postgre Pin
Tomas@PawSQL30-Aug-22 1:15
professionalTomas@PawSQL30-Aug-22 1:15 
GeneralRe: Get all tables under a database in Postgre Pin
Tomas@PawSQL30-Aug-22 1:20
professionalTomas@PawSQL30-Aug-22 1:20 
AnswerRe: Get all tables under a database in Postgre Pin
Richard MacCutchan13-Jan-22 23:39
mveRichard MacCutchan13-Jan-22 23:39 
GeneralRe: Get all tables under a database in Postgre Pin
_Flaviu14-Jan-22 0:06
_Flaviu14-Jan-22 0:06 
GeneralRe: Get all tables under a database in Postgre Pin
Richard MacCutchan14-Jan-22 0:13
mveRichard MacCutchan14-Jan-22 0:13 
GeneralRe: Get all tables under a database in Postgre Pin
_Flaviu14-Jan-22 3:32
_Flaviu14-Jan-22 3:32 
QuestionList all tables from a specific database Pin
_Flaviu12-Jan-22 0:41
_Flaviu12-Jan-22 0:41 
How can I list all tables from a specific database in PostGre SQL ?

Lets say I have 3 databases, and I have several tables in every one each of them. How can I retrieve the table names for every database I have, using SQL command ?

With following command:

SQL
SELECT datname FROM pg_database	WHERE datistemplate = false


SQL
I got:
db_name
post_flaviu
postgres
test

Now, how can I find all tables under eevry db from above ?

modified 12-Jan-22 7:16am.

AnswerRe: List all tables from a specific database Pin
Peter_in_278012-Jan-22 1:18
professionalPeter_in_278012-Jan-22 1:18 
GeneralRe: List all tables from a specific database Pin
_Flaviu12-Jan-22 1:35
_Flaviu12-Jan-22 1:35 
AnswerRe: List all tables from a specific database Pin
k505412-Jan-22 1:35
mvek505412-Jan-22 1:35 
GeneralRe: List all tables from a specific database Pin
_Flaviu12-Jan-22 1:59
_Flaviu12-Jan-22 1:59 
GeneralRe: List all tables from a specific database Pin
k505412-Jan-22 4:13
mvek505412-Jan-22 4:13 
GeneralRe: List all tables from a specific database Pin
_Flaviu12-Jan-22 4:32
_Flaviu12-Jan-22 4:32 
GeneralRe: List all tables from a specific database Pin
Richard MacCutchan12-Jan-22 4:39
mveRichard MacCutchan12-Jan-22 4:39 
GeneralRe: List all tables from a specific database Pin
_Flaviu12-Jan-22 5:19
_Flaviu12-Jan-22 5:19 
GeneralRe: List all tables from a specific database Pin
Richard MacCutchan12-Jan-22 5:41
mveRichard MacCutchan12-Jan-22 5:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.