home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gossip.pyramid.com!pyramid!infmx!davek
- From: davek@informix.com (David Kosenko)
- Newsgroups: comp.databases.informix
- Subject: Re: Start values for serial columns
- Message-ID: <1992Dec28.182441.11760@informix.com>
- Date: 28 Dec 92 18:24:41 GMT
- References: <1he3q4INNppo@emory.mathcs.emory.edu>
- Sender: news@informix.com (Usenet News)
- Organization: Informix Software, Inc.
- Lines: 27
-
- Dave Snyder writes:
- >Quoting Malcolm Apps...
- >}
- >} I've recently been working on a small project that will recreate a
- >} database schema *exactly* - down to the names of tablespaces etc and
- >} especially the initial values of any serial columns.
- >}
- >} I've scoured the system catalogs and can't find the information
- >} required for serial columns anywhere.
- >}
- >Having worked with the low-level C-ISAM stuff... I don't see anywhere
- >that the initial SERIAL number is stored. The serial number is stored
- >in the .idx file. I would assume that when a table is created, the
- >initial value is written to the file. As rows are added, the serial
- >value is incremented. It seems that after you start adding rows,
- >the initial serial value is lost forever. Can anyone at Informix confirm
- >or deny this observation?
-
- Mr. Snyder's observation is correct. The initial serial value is not
- preserved anywhere.
-
- Dave
- --
- Disclaimer: These opinions are not those of Informix Software, Inc.
- **************************************************************************
- "I look back with some satisfaction on what an idiot I was when I was 25,
- but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
-