Re: syntax for reaching into records, specifically ts_stat results

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: syntax for reaching into records, specifically ts_stat results
Дата
Msg-id 20348.1228853589@sss.pgh.pa.us
обсуждение исходный текст
Ответ на syntax for reaching into records, specifically ts_stat results  (Dan Chak <chak@MIT.EDU>)
Ответы Re: syntax for reaching into records, specifically ts_stat results  (Dan Chak <chak@MIT.EDU>)
Список pgsql-hackers
Dan Chak <chak@MIT.EDU> writes:
> If I say stat.word (instead of subscripting), I get 'missing FROM- 
> clause entry for table "stat"'.  If I say foo.stat.word, I get  
> 'ERROR:  schema "foo" does not exist'.

I think the syntax you need is (stat).word etc.  See "Field Selection"
here:
http://www.postgresql.org/docs/8.3/static/sql-expressions.html#AEN1679
The reason for the parens is exactly to distinguish whether the leading
word is a table or column name.
        regards, tom lane


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: syntax for reaching into records, specifically ts_stat results
Следующее
От: Dan Chak
Дата:
Сообщение: Re: syntax for reaching into records, specifically ts_stat results