pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Steve Leibel <stevel@bluetuna.com>
To: pgsql-general@postgresql.org
Subject: timestamp calculations
Date: Thu, 25 Jan 2001 18:14:58 -0500
Message-ID: <v04210122b69663a58cdd@[24.168.80.161]> (raw)
In-Reply-To: <5.0.2.1.0.20010125230629.05b2d138@193.189.189.100>
References: <Pine.BSF.4.31.0101050029580.368-100000@thelab.hub.org>
<5.0.2.1.0.20010125230629.05b2d138@193.189.189.100>
Hello,
I'm converting a mysql db to postgres and ran into this line of code:
$SQL = "select username from users where user_id = ? AND session = ?
AND ADDDATE(last_login, INTERVAL 30 MINUTE)>CURRENT_TIMESTAMP()
How do I implement adddate to get this kind of funcionality?
Thanks,
Steve Leibel
view thread (2+ messages) latest in thread
Message-ID: <v04210122b69663a58cdd@[24.168.80.161]> Permalink: ../v04210122b69663a58cdd@%5B24.168.80.161%5D/ Also on: postgresql.org/message-id/v04210122b69663a58cdd@[24.168.80.161] ·
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 from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-admin@postgresql.org Cc: stevel@bluetuna.com, pgsql-general@postgresql.org Subject: Re: timestamp calculations In-Reply-To: <v04210122b69663a58cdd@[24.168.80.161]> References: <Pine.BSF.4.31.0101050029580.368-100000@thelab.hub.org> <5.0.2.1.0.20010125230629.05b2d138@193.189.189.100> <v04210122b69663a58cdd@[24.168.80.161]> * 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