Using wildcard for table name ?

Поиск
Список
Период
Сортировка
От Francisco Leovey
Тема Using wildcard for table name ?
Дата
Msg-id 1374862904.75803.YahooMailNeo@web164901.mail.bf1.yahoo.com
обсуждение исходный текст
Ответы Re: Using wildcard for table name ?  (Daniel Staal <DStaal@usa.net>)
Re: Using wildcard for table name ?  (David Johnston <polobo@yahoo.com>)
Список pgsql-novice
Hello
 
I have a database in Postgres 9 with 75 tables, all have the exact same definition except for the name of the table.
Each one contains data for people who are doctors (table name = doctors), nurses (table name = nurses) etc. etc.
How can I do a select to find a given person's name (a single field) without mentioniing all 75 table names ? I do not need to know fron which table it came, just need to know if it exists.
 
Is there a "select * from * where *.name ='Joe Blow';" kind of syntax ?
 
I could join all tables into one to do the search but we want to keep data separated due to volume.
Thanks
 

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

Предыдущее
От: Luca Ferrari
Дата:
Сообщение: Re: Fwd: Tricky join and update with same table
Следующее
От: Daniel Staal
Дата:
Сообщение: Re: Using wildcard for table name ?