home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / informix / 2823 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  1.6 KB

  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: Start values for serial columns
  5. Message-ID: <1992Dec28.182441.11760@informix.com>
  6. Date: 28 Dec 92 18:24:41 GMT
  7. References: <1he3q4INNppo@emory.mathcs.emory.edu>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 27
  11.  
  12. Dave Snyder writes:
  13. >Quoting Malcolm Apps...
  14. >} 
  15. >} I've recently been working on a small project that will recreate a
  16. >} database schema *exactly* - down to the names of tablespaces etc and
  17. >} especially the initial values of any serial columns.
  18. >} 
  19. >} I've scoured the system catalogs and can't find the information
  20. >} required for serial columns anywhere.
  21. >} 
  22. >Having worked with the low-level C-ISAM stuff... I don't see anywhere
  23. >that the initial SERIAL number is stored.  The serial number is stored
  24. >in the .idx file.  I would assume that when a table is created, the
  25. >initial value is written to the file.  As rows are added, the serial
  26. >value is incremented.  It seems that after you start adding rows,
  27. >the initial serial value is lost forever.  Can anyone at Informix confirm
  28. >or deny this observation?
  29.  
  30. Mr. Snyder's observation is correct.  The initial serial value is not
  31. preserved anywhere.
  32.  
  33. Dave
  34. -- 
  35. Disclaimer: These opinions are not those of Informix Software, Inc.
  36. **************************************************************************
  37. "I look back with some satisfaction on what an idiot I was when I was 25,
  38.  but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
  39.