I'm runnig 7.3 and am having some problems with syntax.
Here is a foreach in a stored procedure:
FOREACH temp_table FOR
select...
into....
from ..
where ..
END FOREACH
How do I access values from the temp_table in another SQL statement in this stored procedure?
I was going to use temporary tables in the stored procedure, but I discovered that this causes many problems when multiple people attempt to called on the same procedure. I'd use cursors, but apparently the foreach statement is actually an implicit cursor (!). Also you cannot delcare an explicit cursor in a procedure! Any help would be great!
Dan
Here is a foreach in a stored procedure:
FOREACH temp_table FOR
select...
into....
from ..
where ..
END FOREACH
How do I access values from the temp_table in another SQL statement in this stored procedure?
I was going to use temporary tables in the stored procedure, but I discovered that this causes many problems when multiple people attempt to called on the same procedure. I'd use cursors, but apparently the foreach statement is actually an implicit cursor (!). Also you cannot delcare an explicit cursor in a procedure! Any help would be great!
Dan