How can you display the current date & current time ?

Answers were Sorted based on User's Feedback



How can you display the current date & current time ?..

Answer / 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

How can you display the current date & current time ?..

Answer / damy

select sysdate from dual;

Is This Answer Correct ?    5 Yes 0 No

How can you display the current date & current time ?..

Answer / prabu

select getdate()

In SQL Server, We can get current date and time
If this answer is not correct give me feedback

Is This Answer Correct ?    2 Yes 0 No

How can you display the current date & current time ?..

Answer / raghu

select currentdate,currenttime from sysibm.sysdummy
the above date and time are scalar functions and it from the timestamp

Is This Answer Correct ?    2 Yes 0 No

How can you display the current date & current time ?..

Answer / g.naveen

ASKTIME is command used to display the current Date & Time

Is This Answer Correct ?    5 Yes 4 No

How can you display the current date & current time ?..

Answer / umesh

you can ge the current date and time by using the command

date

Is This Answer Correct ?    1 Yes 0 No

How can you display the current date & current time ?..

Answer / ganesh kumar

Answer
# 1

ASKTIME is command used to display the current Date & Time

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More DB2 Interview Questions

What are delete-connected tables?

1 Answers  


How will you return the number of records in table?

0 Answers  


how to resolve -805 . how to see dbrm and package not found

2 Answers   IBM,


Explain what a plan is?

3 Answers   CTS,


what is the difference between normal select query and currosor

2 Answers   Cap Gemini, TCS,


List down the types of triggers in the db2 database?

0 Answers  


What's the Maximum Length of SQLCA and what's the content of SQLCABC?

2 Answers  


List out the buffer pools in db2

0 Answers  


which is the most efficient tablespace?? a.simple tablespace. b.partitioned tablespace. c.segmented tablespace. d.none of the above. please post answer with the reason.?

3 Answers  


Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time?

1 Answers  


what is Static and dynamic linking

1 Answers   Virtusa,


how can u understand the end of the table ?

1 Answers   TCS,


Categories