On Mon, Aug 15, 2005 at 14:27:04 -0600,
"Walker, Jed S" <Jed_Walker(at)cable(dot)comcast(dot)com> wrote:
> We need to add an interval (from a row in a table) to the curren time.
> Table1 has the column offset_in_secs that is an integer.
> Select current_timestamp + '<offset_in_secs> seconds' from table1;
> But can't figure out how to do this.
Select current_timestamp + offset_in_secs * '1 seconds' from table1;
In response to
pgsql-novice by date
|Next:||From: Walker, Jed S||Date: 2005-08-15 20:51:17|
|Subject: Re: Adding variable intervals to timestamps|
|Previous:||From: Walker, Jed S||Date: 2005-08-15 20:27:04|
|Subject: Adding variable intervals to timestamps|