Hello, I want to compute difference between successive records. In MySQL, I had written something like :
SET @prev := 0; SELECT time_to_sec(@prev), @prev := ts FROM mytable; How to achieve the same with sqlalchemy ? (I prefer to do it in SQL rather than python because I want to aggregate the results) Best regards -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.