Re: Inheritance c.cities ??

Поиск
Список
Период
Сортировка
От Oliver Elphick
Тема Re: Inheritance c.cities ??
Дата
Msg-id 200109122127.f8CLRk8s031351@linda.lfix.co.uk
обсуждение исходный текст
Ответ на Inheritance c.cities ??  (R Talbot <rjtalbo@attglobal.net>)
Список 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.Elphick@lfix.co.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



В списке pgsql-general по дате отправления:

Предыдущее
От: "mike"
Дата:
Сообщение: compiling ...
Следующее
От: "Oliver Elphick"
Дата:
Сообщение: Re: locale ordering