Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Location
    Romania
    Posts
    2

    Unanswered: db2 CURRENT TIMESTAMP function

    Am I allowed to use the following:
    ...
    DECLARE X TIMESTAMP;
    SET X=CURRENT TIMESTAMP;
    ....
    in a stored procedure in db2 udb 8.1?

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    Re: db2 CURRENT TIMESTAMP function

    Not too sure about the syntax, but in principle, you can store the value of current timestamp in a variable in SPs

    HTH

    Sathyaram


    Originally posted by ionutz
    Am I allowed to use the following:
    ...
    DECLARE X TIMESTAMP;
    SET X=CURRENT TIMESTAMP;
    ....
    in a stored procedure in db2 udb 8.1?
    Visit the new-look IDUG Website , register to gain access to the excellent content.

Posting Permissions

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