pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Law <simonslaw@gmail.com>
To: pgsql-sql@postgresql.org
Subject: SQL output
Date: Mon, 15 Aug 2005 19:55:20 -0400
Message-ID: <84C5C116-630B-4363-AF37-FF38F9BBC813@gmail.com> (raw)


CREATE TABLE tablename (field INTERVAL);

INSERT INTO tablename VALUES('3 weeks');

SELECT field FROM tablename;
_________
|     field      |
|--------------|
|   21 days |
|________|

The output   shows up in days or months but not weeks how do i make  
it output in weeks?
Any help with this will be greatly appreciated

P.S.
Best postgresql book?




view thread (2+ messages)  latest in thread

Message-ID: <84C5C116-630B-4363-AF37-FF38F9BBC813@gmail.com>
Permalink:  ../84C5C116-630B-4363-AF37-FF38F9BBC813@gmail.com/
Also on:    postgresql.org/message-id/84C5C116-630B-4363-AF37-FF38F9BBC813@gmail.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: simonslaw@gmail.com
  Subject: Re: SQL output
  In-Reply-To: <84C5C116-630B-4363-AF37-FF38F9BBC813@gmail.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