Re: SELECT from multiple tables (not join though)

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: SELECT from multiple tables (not join though)
Дата
Msg-id 20050110190721.GA11155@wolff.to
обсуждение исходный текст
Ответ на Re: SELECT from multiple tables (not join though)  (Madison Kelly <linux@alteeve.com>)
Список pgsql-general
On Mon, Jan 10, 2005 at 13:24:50 -0500,
  Madison Kelly <linux@alteeve.com> wrote:
>
> ^.^; Can you point me to docs that will help me learn how to do that?
> Thanks! Or rather, do you mean add a column to the table with an ID for
> the table that I select beside the file_name? If so, that is what I am
> planning to do if I can't find a smoother way to do it.

You can just add a list item. Either a number or a quoted string.
Something like:
SELECT 'Table A', col1, col2, col3 FROM tablea;

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

Предыдущее
От: TJ O'Donnell
Дата:
Сообщение: Re: how to optimize my c-extension functions
Следующее
От: "Frank D. Engel, Jr."
Дата:
Сообщение: Re: SELECT from multiple tables (not join though)