| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера