obtain the difference between successive rows

Поиск
Список
Период
Сортировка
От ochaussavoine
Тема obtain the difference between successive rows
Дата
Msg-id 1350730462060-5729149.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: obtain the difference between successive rows  (Raymond O'Donnell <rod@iol.ie>)
Список pgsql-general
Hi,
I have a table 'tmvt' with a field 'created' in the row, and would like to
compute the difference between successive rows. The solution I found is:

It is complicate and very long to perform. The problem could be simply
solved with MySql by creating a new field and updating it using a statement
with @.
I beleive this is a common problem for users. Do you know a simpler solution
with postgreSql?



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/obtain-the-difference-between-successive-rows-tp5729149.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: Thalis Kalfigkopoulos
Дата:
Сообщение: pgwatch: installs but doesn't display anything
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: obtain the difference between successive rows