How can you display the current date & current time ?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...

3894


What are the 2 sqlcodes that are returned?

731


How to fetch the last row from the table in SQL (db2)?

1150


What is the usage of open cursor command?

685


What is the physical storage length of timestamp data type?

740






What is the difference between cursor and select statement?

714


Is ibm db2 free?

664


How is a typical db2 batch pgm executed?

721


Explain packages.

756


What happens in bind step in a db2 program?

649


What is bind in db2?

679


What are the contents of dclgen?

745


How do you concatenate the firstname and lastname from emp table to give a complete name?

682


What is role in db2?

691


Is db2 a database?

652