Re: Help with SQL updating not working.

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: Help with SQL updating not working.
Дата
Msg-id 20150519062351.GA11085@tux
обсуждение исходный текст
Ответ на Help with SQL updating not working.  (Paul Linehan <linehanp@tcd.ie>)
Список pgsql-novice
Paul Linehan <linehanp@tcd.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°


В списке pgsql-novice по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Help with SQL updating not working.
Следующее
От: Daniel Begin
Дата:
Сообщение: Constraint exclusion in partitions