column and table names - Mailing list pgsql-novice

From stephen`
Subject column and table names
Date
Msg-id 000701c787d8$0d655960$6701a8c0@tablet
Whole thread Raw
Responses Re: column and table names
Re: column and table names
List pgsql-novice

Hi

 

I am trying to find sql to get table and column names.  I found these:

 

 

 

SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'

 

This one works, but the column name one below doesn’t. 

 

 

SELECT column_name FROM information_schema.columns WHERE table_name ='marketLayout'

 

Can anyone tell me how to get the wording right?

 

Stephen Choularton

0413 545 182

02 9999 2226

 

 

 

pgsql-novice by date:

Previous
From: "stephen`"
Date:
Subject: pg_dump
Next
From: "stephen`"
Date:
Subject: cannot insert or update