Re: SELECT from multiple tables (not join though)

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: SELECT from multiple tables (not join though)
Дата
Msg-id 20050110182608.GA7337@wolff.to
обсуждение исходный текст
Ответ на Re: SELECT from multiple tables (not join though)  (Madison Kelly <linux@alteeve.com>)
Ответы Re: SELECT from multiple tables (not join though)  (Madison Kelly <linux@alteeve.com>)
Список pgsql-general
On Mon, Jan 10, 2005 at 12:47:53 -0500,
  Madison Kelly <linux@alteeve.com> wrote:
>
> The trick now is I need to know which table each result came from. I can
> add another column and record the table number and SELECT that at the
> same time but before I do I was wondering if I can do this more
> efficiently or elegantly.

You can add a constant to the select list in each of the subselects
that indicates which table is being used.

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

Предыдущее
От: Madison Kelly
Дата:
Сообщение: Re: SELECT from multiple tables (not join though)
Следующее
От: Brendan Jurd
Дата:
Сообщение: Re: Function for retreiving datatype