home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / informix / 3065 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 KB

  1. Path: sparky!uunet!think.com!rpi!gatech!emory!emory!not-for-mail
  2. From: promdist!bill@pds.com (Bill Foote)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re:  Help with Insert (ESQL/C)
  5. Date: 26 Jan 1993 16:48:11 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 27
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1k4birINNn1b@emory.mathcs.emory.edu>
  11. Reply-To: promdist!bill@pds.com (Bill Foote)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1823>
  14.  
  15. > ->    I have a scienario where I need to insert into one table
  16. > ->and one of the columns of the table is of serial datatype. After
  17. > ->inserting into this table, I need to know what the column value
  18. > ->is ( the serial type one) and insert this value into another 
  19. > ->table where it is a foreign key.
  20.  
  21. > The value you want is in global variable 'sqlca.sqlerrd[2]'.
  22. > In my ESQL/C manual, it's on pages 2-18 ff.  For my 4GL colleagues, it's on 
  23. > pages 3-77 ff of I4GL Ref. Manual Volume 1.
  24.  
  25. In my ESQL/C (version 4.00) manual, it's in sqlca.sqlerrd[1], _not_
  26. sqlca.sqlerrd[2].  sqlca.sqlerrd[2] is the number of rows processed.
  27. I hope that this was just a typo, because I don't want to think
  28. that something like this would change across versions.
  29.  
  30. In reference to my previous post (where I claimed that this didn't
  31. exist in Informix ESQL/C 1.0), I guess that I didn't RTFM closely
  32. enough way back then.  Informix ESQL/C 1.0 _does_ return this value
  33. in sqlca.sqlerrd[1].
  34.  
  35. -- 
  36. Bill Foote                        bill@pds.com
  37. MIS Director                        uunet!promdist!bill
  38. PDS Corp, Los Angeles, CA  USA
  39.