Database sql result loop

Hello, my dear friends,

My problem is very easy to solve for people, who understand a bit more of sql-select results and how to handle them:

I want to select rows of a table (select * from Gewicht) and then I want to work with every row, that comes in the result, (could be thousands of rows). Have no idea, how to manage this. Should I read it in a list first and iterate each item then? And how?
like:

result = select * from Gewicht
While (result)
{ work on result.row }
Please be so kind and show me an example.

Greetings

Emanuel

Could you provide a few example rows and explain more in detail, what you plan to do with the data?

If it is some kind of calculation you probably could do it directly in the database

Taifun

https://ai2.appinventor.mit.edu/reference/concepts/pholo.html