Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Posts
    3

    Question Unanswered: Current Timestamp

    When I try to use current timestamp value in an insert statement in a trigger the value returned only uses the first 3 values in the microsecond section of the timestamp, i.e. 2009-05-04 12:35:01.859000. The remaining 3 positions always display zeros. How do I get values in the final three positions?

    We are using db2 v 9.1.200.98 on a Windows server.

    Thanks

  2. #2
    Join Date
    Feb 2008
    Location
    Japan
    Posts
    3,483
    I thought that it was came from Windows OS.
    Here is a discussion giving hints (some may be annoying, because of narrow-mindedness of a person who stick to his(/her?) own mind).
    comp.databases.ibm-db2 | Google Groups

  3. #3
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    DB2 gets it from the OS, and that is all that Windows provides.
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •