home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / informix / 2421 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  1.5 KB

  1. Path: sparky!uunet!ulowell!news.bbn.com!olivea!gossip.pyramid.com!pyramid!infmx!davek
  2. From: davek@informix.com (David Kosenko)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: table creation timestamp
  5. Message-ID: <1992Nov13.163029.4123@informix.com>
  6. Date: 13 Nov 92 16:30:29 GMT
  7. References: <1du5vcINNafe@emory.mathcs.emory.edu>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 24
  11.  
  12. Bob Baskett writes:
  13. >
  14. >i there a way that the creation timestamp of a table can be obtained.
  15. >tbcheck -pt db:tab displays it, but i want to get this info non-
  16. >interactively and without having to wait for tbcheck to finish.  also,
  17. >does informix stores the last update, last alter timestamp anywhere.
  18.  
  19. You could get the creation *date* (but not time) by 
  20.  
  21. SELECT created FROM systables WHERE tabname = "<tablename>";  This
  22. will not reflect any table alterations though.  There is nothing that
  23. tracks the last "update" (we'd be forever modifying it!).  There is a verion
  24. column in systables that get sincremented when an ALTER TABLE is performed,
  25. but it is not a timestamp.
  26.  
  27. The timestamp you see in tbcheck is stored in the tblspace tblspace, and is
  28. not available to users via any method other than tbcheck.
  29.  
  30. Dave
  31. -- 
  32. Disclaimer: These opinions are not those of Informix Software, Inc.
  33. **************************************************************************
  34. "I look back with some satisfaction on what an idiot I was when I was 25,
  35.  but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
  36.