
May 7th, 2003, 04:44 AM
|
|
Junior Member
|
|
Join Date: May 2003
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
NOW() syntax
Hi all,
I've just started using PostgreSQL in my new job having been using MySQL until now.
I have a timestamp column, with the now() function attached to it.
What I would like to do is now() + 2 hours. So I can make a "timeout" for sessions.
What is the syntax for NOW() + 2 hours?
(date(now() +2) adds 2 days to the time...
Thanks in advance.
mike
|