Re: Inheritance c.cities ??

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: R Talbot <rjtalbo(at)attglobal(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Inheritance c.cities ??
Date: 2001-09-12 21:27:45
Message-ID: 200109122127.f8CLRk8s031351@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

R Talbot wrote:
>Looking at the Postgresql manual in the inheritance section I see
>abbreviations.
>
>i.e.
>SELECT c.name, c.altitude
>FROM cities* c
>WHERE c.altitude > 500;
>
>c.name of course refering to cities.name
> My question is where is there an alias reference of c AS cities
>
>How does and where does the cities become c. How does Postgresql
>recognize the change.

Here:

>FROM cities* c

This is equivalent to "FROM cities* AS c".

In the current release, "cities" is equivalent to "cities*"; to get rows
from cities alone you need to use "FROM ONLY cities"

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Let the wicked forsake his way, and the unrighteous
man his thoughts; and let him return unto the LORD,
and He will have mercy upon him; and to our God, for
he will abundantly pardon." Isaiah 55:7

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2001-09-12 21:31:25 Re: locale ordering
Previous Message Holger Klawitter 2001-09-12 21:20:17 Re: compiling ...