I scanned the internet for two days without any result. I try to update empty cells in a MYSQL table with the same value as the preceding cell:
+-------+ +-------+
|ID |VAL| |ID |VAL|
+-------+ +-------+
| 1 | 7 | | 1 | 7 |
| 2 | | | 2 | 7 |
| 3 | | | 3 | 7 |
| 4 | 4 | | 4 | 4 |
| 5 | 5 |after:| 5 | 5 |
| 6 | | | 6 | 5 |
| 7 | | | 7 | 5 |
| 8 | 8 | | 8 | 8 |
| 9 | 3 | | 9 | 3 |
|10 | | |10 | 3 |
+-------+ +-------+