How to save the last checkpoint in the sql to be used for next row
问题 Is there any way I can store the last iterated row result and use that for next row iteration? For example I have a table say( Time_Table ). __ Key type timeStamp 1 ) 1 B 2015-06-28 09:00:00 2 ) 1 B 2015-06-28 10:00:00 3 ) 1 C 2015-06-28 11:00:00 4 ) 1 A 2015-06-28 12:00:00 5 ) 1 B 2015-06-28 13:00:00 Now suppose I have an exceptionTime of 90 minutes which is constant. If I start checking my Time_Table then: for the first row, as there is no row before 09:00:00, it will directly put this