Try to use "cursor for loop"

cheese
anandkl