I need to do a function where I read one by one the records of a query like: select * from alumnos
to be able to use the data one at a time, and to modify them one at a time.
Therefore the idea was to put it in a while and go modifying them but I do not know how to go selecting one by one and without repeating them. All this in SQL 2008 language