Re: Data type conversion

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Data type conversion
Дата
Msg-id 20031003194453.GA23110@wolff.to
обсуждение исходный текст
Ответ на Data type conversion  ("Jan Pips" <jan_pips@op.pl>)
Список pgsql-sql
On Fri, Oct 03, 2003 at 09:23:46 +0200, Jan Pips <jan_pips@op.pl> wrote:
> How to convert the interval type into integer, float or any "countable" data
> type at the time of table creation using
> select ... into?

You can use extract to do that. See the date/time function documentation.
Note that months get treated as 30 days when extracting periods less
than a month from an interval.


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

Предыдущее
От: "John B. Scalia"
Дата:
Сообщение: Bug in psql - Postgresql 7.3.1?
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Bug in psql - Postgresql 7.3.1?