pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedFrom: Pham, Thinh <tpham@mail.priority.net>
To: 'pgsql-sql@postgreSQL.org' <pgsql-sql@postgreSQL.org>
Subject: datediff function
Date: Mon, 16 Aug 1999 11:02:20 -0500
Message-ID: <551413BBBB03D111BF880060B01AACCE139F30@home.priority.net> (raw)
Hi everyone,
Does anyone know if postgres has a function similar to what datediff does in
mssql server? I need it to do an update similar to the one below:
"update schedule set purged = 0 where datediff(day, timein, getdate()) > 30"
I know i could pull the whole table down to my machine, modify the data and
then upload it back, but that's really stupid not to mention what it'll do
to network trafic.
Thank you very much for any answer,
Thinh
view thread (12+ messages) latest in thread
Message-ID: <551413BBBB03D111BF880060B01AACCE139F30@home.priority.net>
Permalink: ../551413BBBB03D111BF880060B01AACCE139F30@home.priority.net/
Also on: postgresql.org/message-id/551413BBBB03D111BF880060B01AACCE139F30@home.priority.net
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: tpham@mail.priority.net
Subject: Re: datediff function
In-Reply-To: <551413BBBB03D111BF880060B01AACCE139F30@home.priority.net>
* 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