Re: Postgres - search for value throughout many tables?
От
Achilleas Mantzios
Тема
Re: Postgres - search for value throughout many tables?
Дата
Msg-id
56aae3f5-3e34-a643-9a08-8ac253b99fb3@matrix.gatewaynet.com
Ответ на
Список
Дерево обсуждения
Postgres - search for value throughout many tables? czezz <czezz@o2.pl>
Re: Postgres - search for value throughout many tables? Achilleas Mantzios <achill@matrix.gatewaynet.com>
Re: Postgres - search for value throughout many tables? Adrien NAYRAT <adrien.nayrat@anayrat.info>
Re: Postgres - search for value throughout many tables? "Daniel Verite" <daniel@manitou-mail.org>
Re: Postgres - search for value throughout many tables? "David G. Johnston" <david.g.johnston@gmail.com>
Re: Postgres - search for value throughout many tables? Christopher Browne <cbbrowne@gmail.com>
If the num of tables is smallish you could run smth like select * from ( select table1::text as thecol from table1 UNION select table2::text FROM table2 UNION select table3::text FROM table3 UNION ..... ) as qry WHERE thecol ~* 'some pattern'; On 08/08/2018 17:09, czezz wrote: > Hi everyone, > I want to aks if anyone knows is there a way to search for specific "value" throughout list of tables OR all tables in databse? > > Cheers, > czezz -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt
В списке pgsql-general по дате отправления
От: David G. Johnston
Дата: