| От | Bruno Wolff III |
|---|---|
| Тема | Re: Select from multiple tables |
| Дата | |
| Msg-id | 20030606182002.GB709@wolff.to обсуждение |
| Ответ на | Select from multiple tables (Jon Earle <je_pgsql@kronos.honk.org>) |
| Список | pgsql-general |
On Fri, Jun 06, 2003 at 11:17:01 -0400, Jon Earle <je_pgsql@kronos.honk.org> wrote: > > Hi, > > I want to select data from two tables, with the keying information for the > second table coming from the select results of the first. Can this be > done in one call, or will I need to resort to two calls - one to get the > record from the first table, then a second call to get the record from the > second table based on a key contained in the first results set? It sounds like you want to join the tables. It is hard to say for sure since you haven't provided details about the tables and what you are trying to get back.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера