Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

How do I Loop through a table and update a field in SQL

Language: Layout:
View schema
Execution time: 0,03 sec, rows selected: 18, rows affected: 12, absolute service time: 0,19 sec 
edit mode |  history
   RowId AccountId OrderId
1 1 A 1
2 2 A 2
3 4 A 3
4 5 B 1
5 6 B 2
6 7 C 1
   RowId AccountId OrderId RenewedBy
1 1 A 1 2
2 2 A 2 4
3 4 A 3 NULL
4 5 B 1 6
5 6 B 2 NULL
6 7 C 1 NULL
   RowId AccountId OrderId RenewedBy
1 1 A 1 2
2 2 A 2 4
3 4 A 3 NULL
4 5 B 1 6
5 6 B 2 NULL
6 7 C 1 NULL

    
                
λ
.NET NoSQL database for rapid development