Re: SELECT from multiple tables (not join though) - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: SELECT from multiple tables (not join though)
Date
Msg-id 20050110190721.GA11155@wolff.to
Whole thread Raw
In response to Re: SELECT from multiple tables (not join though)  (Madison Kelly <linux@alteeve.com>)
List 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 by date:

Previous
From: TJ O'Donnell
Date:
Subject: Re: how to optimize my c-extension functions
Next
From: "Frank D. Engel, Jr."
Date:
Subject: Re: SELECT from multiple tables (not join though)