Re: timestamp

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Marc Cuypers <mail(at)mgvd(dot)be>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: timestamp
Date: 2003-06-09 14:53:16
Message-ID: Pine.LNX.4.33.0306090850050.1952-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 4 Jun 2003, Marc Cuypers wrote:

> Hi,
>
> How do insert a timestamp in a timestamp field.
>
> insert into table (tt) values (now()+100)
>
> doesn't seem to work

Here's a page that might help:

http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=functions-datetime.html

A quick hint,

select now() + interval '1 hour';
select now() + interval '45 seconds';

In response to

  • timestamp at 2003-06-04 12:43:31 from Marc Cuypers

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2003-06-09 14:57:28 Re: How to merge 3 databases in one database quickly
Previous Message Doug McNaught 2003-06-09 14:45:16 Re: parse errors when connecting to remote host