Re: Reading a Column After Insert
Posted in 1996
Yes, Sorry about that. Over-sight ! Gopi. On 22 Mar 96 at 9:27, Jonathan Leffler wrote: } In I4GL, you use sqlca.sqlerrd[2], because I4GL arrays are 1-based. } In ESQL/C, you use sqlca.sqlerrd[1], because C arrays are 0-based. } } Yours, } Jonathan Leffler (johnl@informix.com) #include <disclaimer.h> } } }From: "Ramdas Gopinath" <rgopi@rankin.com> } }To: Rajendra_Singh@msn.com, informix-list@rmy.emory.edu } }Date: Fri, 22 Mar 1996 08:42:22 } }X-Informix-List-Id: <list.9145> } } } }On 22 Mar 96 at 4:04, Rajendra Singh wrote: } } } }> In ESQL/C, how do you read a column from a row that was just inserted? } }> In particular, I am interested in reading the contents of a serial } }> column after I have done an insert. } } } }Just assign sqlca.sqlerrd[2] to an integer variable. It contains the } }value for the Serial Column that you would have just inserted. } }You should look up the Manual for the structure of the sqlca record, } }because it contains very useful info. } }Gopi. } }