Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2007
    Posts
    50

    Unanswered: Current time and timestamp

    what is the difference between CURRENT TIME and CURRENT TIMESTAMP ?

  2. #2
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    Time is just that: hours, minutes, seconds and fractions of seconds. A timestamp includes date information.
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

  3. #3
    Join Date
    Sep 2007
    Posts
    50
    Thanks!
    I couldn't find that in the manual

  4. #4
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    Quote Originally Posted by iskander
    Thanks!
    I couldn't find that in the manual
    DATE, TIME, and TIMESTAMP are DB2 column types, and they are documented in the manual.
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

  5. #5
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    5th hit when searching for all 3 names in the manual:

    http://publib.boulder.ibm.com/infoce...c/r0008474.htm
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

  6. #6
    Join Date
    Jan 2003
    Posts
    1,605
    iskander,
    the easiest way is to try thinks out:
    Code:
    select current timestamp, current time, current date from sysibm.sysdummy1
    Hope this helps,
    Grofaty

Posting Permissions

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