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.
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
It can be done; ISQL and DB-Access do it quite happily.
So does my SQLCMD program -- look in the IIUG archives (http://www.iiug.org).
Incidentally, you have to know how to get the data into a structure for
the FETCH statement before you can print it out after the FETCH has worked.
Yours,
Jonathan Leffler (johnl@informix.com) #include <disclaimer.h>
PS: The ESQL/C manual does have a rudimentary example of an unload
program.
>From: Bryan Sapot <bsapot@gundaker.com>
>Date: Wed, 30 Oct 1996 16:49:44 -0600
>X-Informix-List-Id: <news.29925>
>
>I am trying to create an ESQL/C program that can execute any sql
>statement I ask it, then print the data to STDOUT. I know who to execute
>the SQL statement and run through the cursor but how can I get the data
>out of a structure when I don't know what is in it.. Or do I have the
>wrong idea. I would like any help I can get but it has to be an ESQL/C
>program..
>
>I have read through the Informix ESQL/C book and it was no help..
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.