home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / informix / 2698 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1005 b 

  1. Path: sparky!uunet!gossip.pyramid.com!pyramid!infmx!davek
  2. From: davek@informix.com (David Kosenko)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: How can i ...
  5. Message-ID: <1992Dec14.173311.24034@informix.com>
  6. Date: 14 Dec 92 17:33:11 GMT
  7. References: <1g7bcdINNa9d@emory.mathcs.emory.edu>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 15
  11.  
  12. Laurence Humblet writes:
  13. >I want to insert a record in a table with a primary key of type SERIAL and
  14. >obtain the generated value of the primary key in a variable in my
  15. >application. 
  16.  
  17. After inserting a record containing a serial field, the value of the
  18. serial field inserted is available in sqlca.sqlerrd[2] (1 for esql/c).
  19.  
  20.  
  21. Dave
  22. -- 
  23. Disclaimer: These opinions are not those of Informix Software, Inc.
  24. **************************************************************************
  25. "I look back with some satisfaction on what an idiot I was when I was 25,
  26.  but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
  27.