Re: ORDB and dot-notation query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ORDB and dot-notation query
Дата
Msg-id 27602.1257914210@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ORDB and dot-notation query  ("ALLs.org" <info@alls.org>)
Список pgsql-sql
"ALLs.org" <info@alls.org> writes:
> select * from clients WHERE
> address.country.tld = 'de'

> address and country are custom table and TYPE

> I receive error:
> ERROR: schema "adress" does not exist*

Yup, because the SQL standard says that a.b.c means column c in table b
in schema a.  You need to write(address.country).tld
to get the parser started in the right direction.
        regards, tom lane


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

Предыдущее
От: "ALLs.org"
Дата:
Сообщение: Re: ORDB and dot-notation query
Следующее
От: bujjibabu
Дата:
Сообщение: Caliculating Business Days and adding business days usefull functions for developers