How can you display the current date & current time ?

Answer Posted / chandrika

Exec sql
set :ws-current-date to current date
End exec

display 'current date' ws-current-date.



Exec sql
set :ws-current-time to current time
End exec

display 'current time' ws-current-time.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

On which levels locks can be applied?

896


What is the use of value function?

875


What is copy pending status in db2?

893


Differentiate between cs and rr isolation levels? Where do you specify them?

849


Give a brief description of db2 isolation levels?

818


Are view updateable?

836


Where can you declare a cursor in a cobol-db2 program?

804


What is database alias db2?

901


Which is faster delete or truncate?

909


Mention the location where the output received from explain statement is stored.

888


What is the role of the data page in the db2 database?

802


Why do chiropractors use drop table?

900


what is utility for parm lib

2134


What do you mean by rollback?

772


What is the maximum size of varchar data type in db2?

890