Re: searching multiple tables

Поиск
Список
Период
Сортировка
Искать
От
Terry Lee Tucker
Тема
Re: searching multiple tables
Дата
в 19:01:54
Msg-id
200605311800.44308.terry@esc1.com
Ответ на
searching multiple tables (Keith D. Evans)
Список
Дерево обсуждения
searching multiple tables "Keith D. Evans" <evans@umbc.edu>
Re: searching multiple tables Terry Lee Tucker <terry@esc1.com>
Re: searching multiple tables Richard Broersma Jr <rabroersma@yahoo.com>
Re: searching multiple tables Brian Hurt <bhurt@janestcapital.com>
Re: searching multiple tables "Keith D. Evans" <evans@umbc.edu>
Re: searching multiple tables Sean Davis <sdavis2@mail.nih.gov>
On Wednesday 31 May 2006 04:40 pm, "Keith D. Evans"  thus 
communicated:
--> Hello novices,
-->
--> I hope some aren't novices so that the questions can be answered. :-)
-->
--> I want to search many tables for certain data. The tables all have
--> exactly the same columns. In searching the archives, I noticed that the
--> exact table name seemed to be required for the select ... from ..
--> command, but we are talking about 20,000 tables or more. Specifiying
--> each table would be extremely inconvenient. And we may want to search
--> all the tables. Some of the columns are time, latitude and longitude.
--> We want to be able to search on time and/or lat and lon. Time will be
--> unique, but the lats and lons may repeat. Based on these search
--> criteria, we will pull out other data (columns) from the table(s).
-->
--> I have been reading the documentation manuals for postgresql 7.4 and
--> browsing the archives, but have not found an answer to this question.
--> Can anyone help me?
-->
--> thanx,
--> keith evans
-->

If I understand the issue correctly, it seems that you need to be generating 
dynamic SQL statements. Look at the docs for the execute command. It gives 
examples of how to do this.
В списке pgsql-novice по дате отправления
От: Brian Hurt
Дата:
Сообщение: Re: searching multiple tables
От: Richard Broersma Jr
Дата:
Сообщение: Re: searching multiple tables
FAQ