SQL output

From: Simon Law <simonslaw(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: SQL output
Date: 2005-08-15 23:55:20
Message-ID: 84C5C116-630B-4363-AF37-FF38F9BBC813@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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?

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2005-08-16 00:21:23 Re: Problem with a Pettern Matching Check
Previous Message Dmitri Bichko 2005-08-15 23:08:54 Re: Problem with a Pettern Matching Check