If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Current Timestamp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-04-09, 15:23
claskowski claskowski is offline
Registered User
 
Join Date: Apr 2007
Posts: 3
Question 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
Reply With Quote
  #2 (permalink)  
Old 05-04-09, 15:47
tonkuma tonkuma is offline
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
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
Reply With Quote
  #3 (permalink)  
Old 05-04-09, 20:47
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On