Re: Proper relational database? - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: Proper relational database?
Date
Msg-id 571B9408.90801@commandprompt.com
Whole thread Raw
In response to Re: Proper relational database?  (Geoff Winkless <pgsqladmin@geoff.dj>)
List pgsql-general
On 04/23/2016 08:09 AM, Geoff Winkless wrote:
> On 23 April 2016 at 07:08, Manuel Gómez <targen@gmail.com> wrote:
>> but its semantics can be rather wonky.  Witness:
>>
>> postgres=# select 1;
>>   ?column?
>> ----------
>>          1
>> (1 row)
>>
>> postgres=# select 1 union select 1;
>>   ?column?
>> ----------
>>          1
>> (1 row)
>
>
> Exactly what you would expect. Use UNION ALL to get two rows.

Exactly, a simple reading the docs will explain this:

http://www.postgresql.org/docs/9.5/static/queries-union.html


JD

--
Command Prompt, Inc.                  http://the.postgres.company/
                         +1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.


pgsql-general by date:

Previous
From: Geoff Winkless
Date:
Subject: Re: Proper relational database?
Next
From: Manuel Gómez
Date:
Subject: Re: Proper relational database?