Re: partial JOIN (was: ID column naming convention)

From: Rafal Pietrak <rafal(at)ztk-rp(dot)eu>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: partial JOIN (was: ID column naming convention)
Date: 2015-10-24 19:03:11
Message-ID: 562BD5EF.6060201@ztk-rp.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

W dniu 24.10.2015 o 15:00, David G. Johnston pisze:
> On Sat, Oct 24, 2015 at 6:41 AM, Rafal Pietrak <rafal(at)ztk-rp(dot)eu
> <mailto:rafal(at)ztk-rp(dot)eu>>wrote:
[----------------------]
>
> ​Using explicit column names is expected - using "*" in non-trivial and
> production queries is not.
>
> You can move the aliases if you would like.
>
> SELECT *
> FROM tablea (col1, col2, col4)
> JOIN tableb AS tb1 (col1, col3, col5) USING (col1)
> JOIN tableb AS tb2​
>
> ​(col1, col6, col7) USING (col1)

I knew there must have been something like this.

thenx,

-R

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chaz Yoon 2015-10-24 19:35:43 Duplicate rows during pg_dump
Previous Message Adrian Klaver 2015-10-24 18:37:16 Re: Using function returning multiple values in a select