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

OUTER JOINS USED TO GET MATCHING AND NONMATCHING ROWS FORM 2 OR MORE TABLES BASED ON COLUMNS. SIMPLE JOINS ALSO DO THE SAME THEN WHAT IS THE USE OF OUTER JOINS.

1 Answers   Syntel,


what is the maximum number of tables that can be joined ?

8 Answers   IBM, TCS,


What happens to a tablespace when its recovery infromation has been removed and a full recovery is no longer possible?

2 Answers  


I have 1000 rows in a db2 table.I want to update first 100 records,How do I do it?

4 Answers   CTS,


How do you insert a record with a nullable column?

2 Answers  






What is a PLAN table? How will you use it? Give the various fields of PLAN table?

1 Answers   Accenture,


How to select the duplicate rows from a table?

4 Answers  


Why do we need to create an alias if we can directly use the table name? What are the benefits of referring a table name by its alias? Also, when should we go for alias and when for synonyms?

1 Answers  


I am having n number of records in a table which consists of emp-name is one of the field among them. Now i want to change the first letter of every name with capital.

1 Answers   Cap Gemini,


What is a DB2 bind?

1 Answers   Logica CMG,


What will the FREE command do to a plan?

2 Answers  


Is there any advantage to denormalizing DB2 tables?

1 Answers  


Categories