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.
REXARNOLD — — source: Informix-list mailing list archive (1991-1998)
I believe you always have to include in the select any columns in the order by.
What I do in this instance in a 4GL is make the unwanted columns the end of my
columns selected then in my fetch or foreach INTO is not have any variable for
them:
Ex
DECLARE c_cursorname FOR
SELECT a.column1,a.column2.a.column3
from tablename a
ORDER BY 3,2,1FOREACH c_cursorname INTO vara,varb
Do SOMETHING
END FOREACH;
Hope This Helps.
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.