Oracle to DB2 UDB Conversion Guide2003

 < Day Day Up > 


5.17 Manipulating date and time

Both Oracle and DB2 UDB have date and time data types and functions to get the date and time from system or convert the date and time into different formats, and perform arithmetic on dates. Oracle has DATE, which can be mapped to DB2 TIMESTAMP. DB2 has two other date and time functions called DATE and TIME.

If your applications only use the date portion of Oracle's date data type, it will be more efficient to convert these types to DB2's DATE type (rather than TIMESTAMP). Here we show you some examples on date manipulation.

For more information on manipulation with dates, refer to the article on the DB2 developer domain:

http://www7b.software.ibm.com/dmdd/library/techarticle/0211yip/0211yip3.html


 < Day Day Up > 

Категории