Re: Question on interval

Поиск
Список
Период
Сортировка
От Rodrigo De León
Тема Re: Question on interval
Дата
Msg-id a55915760704201229s24b2004fgf0e8c566886fe4af@mail.gmail.com
обсуждение исходный текст
Ответ на Question on interval  (Wei Weng <wweng@kencast.com>)
Ответы Re: Question on interval
Список pgsql-sql
On 4/20/07, Wei Weng <wweng@kencast.com> wrote:
> Hi all.
>
> How do I write a query that converts an interger to the interval type?
>
> Like convert integer 10 to INTERVAL '10 seconds'?
>
> The integer is a column in a table though, so it is more like convert
> integer tbl.theInteger to INTERVAL 'tbl.theInteger seconds".
>
> Thanks!
>
>
> Wei

select (10||' sec')::interval;


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

Предыдущее
От: Wei Weng
Дата:
Сообщение: Question on interval
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Question on interval