Beruflich Dokumente
Kultur Dokumente
Oracle provides a data type date that behaves like a timestamp. It stores a date and a time.
Internally a date is stored in a special format not visible to the user. A user can store and retrieve
dates and times through the following main functions:
The format for a date is a string that may include as a substring one or more of the following:
The following list contains most of the popular functions you can use with Oracle dates:
• date sysdate()
returns the current date and time
• date + int
date - int
You can add or subtract a number of days to a date to get that new date
• date1 - date2
returns the number of days between date 1 and date 2
=====================
References:
Rajshekhar Sunderraman, Oracle Programming - A Primer, Addison Wesley, 2004.