Date-Time-Timestamp

Date-Time-Timestamp use in SQL Queries

The sysibm.sysdummy1 table is a special in-memory table that can be used to fetch the value of DB2 registers Date-Time-Timestamp. To extract a certain portion of data from the current timestamp you can use the below-mentioned functions. Specifying CURRENT_TIMESTAMP is equivalent to specifying CURRENT TIMESTAMP. Date-Time-Timestamp SELECT current date FROM sysibm.sysdummy1 SELECT current time FROM […]

Date-Time-Timestamp use in SQL Queries Read More »