Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Jorge Torralba — — source: Informix-list mailing list archive (1991-1998)
FOREACH cursor INTO something.*
LET counter = counter + 1
IF counter >= 100 THEN
EXIT FOREACH
END IF
END FOREACH
Wouldn't this still take "ages", because of the fact that FOREACH would still
open a cursor and select all the data (say 10,000 rows) ?
Not if you declare a scroll cursor and use fetch. The scroll cursor will not
select all the data into a temporary table like a regular cursor would.
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.