pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wei Weng <wweng@kencast.com>
To: pgsql-sql@postgresql.org
Subject: Question on interval
Date: Fri, 20 Apr 2007 14:53:40 -0400
Message-ID: <46290C34.9080507@kencast.com> (raw)

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




view thread (5+ messages)  latest in thread

Message-ID: <46290C34.9080507@kencast.com>
Permalink:  ../46290C34.9080507@kencast.com/
Also on:    postgresql.org/message-id/46290C34.9080507@kencast.com

 · 

reply

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: wweng@kencast.com
  Subject: Re: Question on interval
  In-Reply-To: <46290C34.9080507@kencast.com>

* 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