find columns that contain a single value for all rows

Поиск
Список
Период
Сортировка
От gkl12799@gmail.com
Тема find columns that contain a single value for all rows
Дата
Msg-id F95EB440-A48B-4044-AC6A-5EF1A4944C9B@gmail.com
обсуждение исходный текст
Список pgsql-general
Hi,

Is there an easy way to find all the columns in all the tables in a
database which contain the same value for all rows?

For example, Column A contains the value '365' for all of the rows in
Table One:

Col A
--------
   365
   365
   365
   365
   365
   ...
   ...
   ...

I need a recursive function or query that will find all columns like
this and remove them from their respective tables ...

Thanks,

Gerry




В списке pgsql-general по дате отправления:

Предыдущее
От: "Vinesh, Raghavan"
Дата:
Сообщение: Installation of PostgreSQL Service under admin account
Следующее
От: "Christian Maier"
Дата:
Сообщение: Re: postmaster disconnects after heavy load inserts from plperlu -> waht to do?