From: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Help with SQL updating not working. |
Date: | 2015-05-19 06:23:51 |
Message-ID: | 20150519062351.GA11085@tux |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Paul Linehan <linehanp(at)tcd(dot)ie> wrote:
> Hi all,
>
> I'm trying to perform an update and having a bad brain day!
>
> It involves calculating the different between two times and inserting
> the difference into a third field
>
> Create the table
>
> test=# CREATE TABLE the_times (time1 time, time2 time, time_diff
> integer); -- time_diff is in seconds;
> CREATE TABLE
the time_diff - column are unnecessary, it can be calculated in the
select.
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Begin | 2015-05-21 20:51:40 | Constraint exclusion in partitions |
Previous Message | David G. Johnston | 2015-05-18 22:24:12 | Re: Help with SQL updating not working. |