search for column name in psql

Solutions on MaxInterview for search for column name in psql by the best coders in the world

showing results for - "search for column name in psql"
Andie
03 Jul 2016
1select t.table_schema,
2       t.table_name
3from information_schema.tables t
4inner join information_schema.columns c on c.table_name = t.table_name 
5                                and c.table_schema = t.table_schema
6where c.column_name = 'last_name'
7      and t.table_schema not in ('information_schema', 'pg_catalog')
8      and t.table_type = 'BASE TABLE'
9order by t.table_schema;