From: | "Francis Solomon" <francis(at)stellison(dot)co(dot)uk> |
---|---|
To: | "Boris" <koester(at)x-itec(dot)de>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | RE: Date/Time problem -((( |
Date: | 2001-01-02 11:23:49 |
Message-ID: | NEBBIFFPELJMCJAODNPKAEHCCEAA.francis@stellison.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hi Boris,
I know Kaare Rasmussen posted a URL to the online documentation already,
but this might be a direct solution to your problem:
DELETE FROM onlineuser WHERE datum < ('now'::datetime - '5
minutes'::interval);
Hope this helps
Francis Solomon
> Hello
>
> I am moving from MySQL to Postgres and while converting my sql code I
> have a lot of problems with this construction:
>
> ($ze is current time - 300 secounds):
>
> delete from onlineuser where datum < FROM_UNIXTIME($ze)
>
> Is there any Date/Time function in PGSQL? I want as shown in this
> example delete entries older than 300 secounds.
>
> I postet to the list because I have found no solution in the
> tutorials and search-engine (maybe searched with wrong words?)
>
> It would be great if someone could help me / point me to the right
> way...
>
> --
> Boris
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Peterson | 2001-01-02 14:52:32 | Re: Looking for comments |
Previous Message | Tom Lane | 2001-01-02 08:20:29 | Re: date infinity |