Re: Calculation error

Поиск
Список
Период
Сортировка
От chestie
Тема Re: Calculation error
Дата
Msg-id 87adcxgsvo.fsf@argus.net.au
обсуждение исходный текст
Ответ на Calculation error  (Wil Duis <Wil.Duis@asml.com>)
Список pgsql-novice
Tom Lane <tgl@sss.pgh.pa.us> writes:

> chestie <mcit@argus.net.au> writes:
>> I kept getting this same error, heres what I was trying to do.
>
>>   it := select int4(extract(epoch from timestamp $1 -
>>            extract(epoch from timestamp $2));
>
> You should just write
>
>   it := select int4(extract(epoch from $1) -
>            extract(epoch from $2));

It works (without the select, my fault).

> You are confusing the syntax

I'm just confused in general. :)
Thanks for the explanation.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Updatable view does not work [oops, quite long!]
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Calculation error