From: Shawn <postgres@xmtservices.net>
To: pgsql-sql@postgresql.org
Subject: Part 1 of several - Converting a varchar to an interval
Date: Wed, 26 Mar 2008 15:56:54 +0000
Message-ID: <200803261556.54418.postgres@xmtservices.net> (raw)
Hello,
I have several large tables, over 100 million records each. One of the fields
is callee 'duration'. It is a varchar that contains what is essentially an
integer that is the duration of an event in milleseconds. Could someone tell
me a simple way to convert a value such as 134987 stored in a varchar into an
interval?
This will dovetail with my next question.
Thanks for all the help both now and previous.
Shawn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: postgres@xmtservices.net
Subject: Re: Part 1 of several - Converting a varchar to an interval
In-Reply-To: <200803261556.54418.postgres@xmtservices.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox