Re: Broad ESQL/C question.
Posted in 1996
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..