|
Hi All,
Can someone please tell me how I can loop through a returned result set
of an SQL query until there are no more records left?
Pseudo code-wise, I need something like this:
SQL: Select * from myfile where myvalue = something
If SQLCOD = 0 then
Dow not end_of_query()
(Do some processing)
(Go to the next record)
Loop
End if
I usually read a file until there are no more records, but I haven't
done it yet with the returned recordset from an SQL statement.
Thanks,
Brian.
-=-=-=-=-=-=-=-=-=-=-=-=-=-
Brian Piotrowski
Specialist - I.T.
Simcoe Parts Service, Inc.
Ph: 705-435-7814 x343
Fx: 705-435-6746
-=-=-=-=-=-=-=-=-=-=-=-=-=-
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.