Re: Data type conversion - Mailing list pgsql-sql

From Jeff Boes
Subject Re: Data type conversion
Date
Msg-id 4d40f22284e334a062a85a4e5edfa6fb@news.teranews.com
Whole thread Raw
List pgsql-sql
Jan Pips wrote:
> How to convert the interval type into integer, float or any "countable" data
> type at the time of table creation using
> select ... into?
> 

I'm guessing you want something like this:

SELECT EXTRACT('EPOCH' FROM INTERVAL    '1 days 4 hours 15 minutes 23 seconds');


-- 
Jeff Boes                                      vox 269.226.9550 ext 24
Database Engineer                                     fax 269.349.9076
Nexcerpt, Inc.                                 http://www.nexcerpt.com           ...Nexcerpt... Extend your Expertise



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Creating Index
Next
From: "Rasmus Aveskogh"
Date:
Subject: Re: Result set granularity..