Select previous row mysql?

后端 未结 5 1288
猫巷女王i
猫巷女王i 2021-01-27 10:11

If I have a mysql table which had primary ids and another field called gameScore can I do something along the lines of...

SELECT gameScore FROM table1 WHERE id =         


        
5条回答
  •  轮回少年
    2021-01-27 10:30

    check out the Lag feature mentioned on this site http://explainextended.com/2009/03/10/analytic-functions-first_value-last_value-lead-lag/

提交回复
热议问题