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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!emory!emory!not-for-mail
  2. From: dave.snyder@snide.com (Dave Snyder)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Start values for serial columns
  5. Date: 24 Dec 1992 23:48:04 -0500
  6. Organization: Mailing List Gateway
  7. Lines: 22
  8. Sender: walt@mathcs.emory.edu
  9. Distribution: world
  10. Message-ID: <1he3q4INNppo@emory.mathcs.emory.edu>
  11. Reply-To: dave.snyder@snide.com (Dave Snyder)
  12. NNTP-Posting-Host: emory.mathcs.emory.edu
  13. X-Informix-List-ID: <list.1738>
  14.  
  15. Quoting Malcolm Apps...
  16. } I've recently been working on a small project that will recreate a
  17. } database schema *exactly* - down to the names of tablespaces etc and
  18. } especially the initial values of any serial columns.
  19. } I've scoured the system catalogs and can't find the information
  20. } required for serial columns anywhere.
  21. Having worked with the low-level C-ISAM stuff... I don't see anywhere
  22. that the initial SERIAL number is stored.  The serial number is stored
  23. in the .idx file.  I would assume that when a table is created, the
  24. initial value is written to the file.  As rows are added, the serial
  25. value is incremented.  It seems that after you start adding rows,
  26. the initial serial value is lost forever.  Can anyone at Informix confirm
  27. or deny this observation?
  28.  
  29. DAS
  30. -- 
  31. David Snyder @ Snide Computer Services - Folcroft, PA          Current Release
  32.                                                                is db4glgen-3.9
  33. UUCP:  ..!uunet!das13!dave   INTERNET:  dave.snyder@snide.com
  34.