http://manuals.sybase.com/onlinebooks/group-as/asg1250e/sqlug If you are looking for loops, see while. for = see cursors declare cursor_name cursor for select_statement [for {read only | update [of column_name_list]}] see cursors.