Re: SELECT from multiple tables (not join though)

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Madison Kelly <linux(at)alteeve(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SELECT from multiple tables (not join though)
Date: 2005-01-10 19:07:21
Message-ID: 20050110190721.GA11155@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 10, 2005 at 13:24:50 -0500,
Madison Kelly <linux(at)alteeve(dot)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;

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-01-10 19:16:04 Re: Function for retreiving datatype
Previous Message Frank D. Engel, Jr. 2005-01-10 18:56:39 Re: SELECT from multiple tables (not join though)