Getting multiple values from ODBC in Asterisk

I need to get multiple values from an sql functioning func_odbc.conf. I have tested that I can get one value to work, but I’d like to know how to iterate through the record set that can be returned from an SQL function. This would help me do many advanced things with the telephone world.

Thank you, in advance!