Hi everyone,
How would I go about iterating through a recordset that has been stored in a variable? For instance, I have this little code snippet.
int empNum;
select EmployeeID into :empNum from Employees;
empNum should hold a number of rows right? (0,1,2 ...) or
do I need to declare an int array? Or does it just fetch the first value? Do I need to execute a .movenext method?
Performing this type of query is really, really weird to me. It took me a long time to realize that "Select x from tblY" wouldn't work. I assume this method is ok for holding scalar values but what about joins? How do I link the individual records??
Keith
How would I go about iterating through a recordset that has been stored in a variable? For instance, I have this little code snippet.
int empNum;
select EmployeeID into :empNum from Employees;
empNum should hold a number of rows right? (0,1,2 ...) or
do I need to declare an int array? Or does it just fetch the first value? Do I need to execute a .movenext method?
Performing this type of query is really, really weird to me. It took me a long time to realize that "Select x from tblY" wouldn't work. I assume this method is ok for holding scalar values but what about joins? How do I link the individual records??
Keith