Oracle9i SQL Reference Release 1 (9.0.1) Part Number A90125-01 |
|
Functions, 101 of 166
round_date::=
round_date
ROUND
returns date rounded to the unit specified by the format model fmt. If you omit fmt, date is rounded to the nearest day.
The following example rounds a date to the first day of the following year:
SELECT ROUND (TO_DATE ('27-OCT-00'),'YEAR') "New Year" FROM DUAL; New Year --------- 01-JAN-01
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|