ROUND (data)

ROUND restituisce una data arrotondata all'unità specificata dal formato della data.

Valore restituito

DATE

Sintassi

ROUND(date [, fmt ])

Argomenti

date è un'espressione che identifica una data e un'ora.

fmt è un valore di testo che un formato di data, come descritto in Oracle Database SQL Reference.

Esempio

ROUND(SYSDATE, 'YEAR') restituisce il valore 01-GEN-07 per qualsiasi giorno nella seconda metà del 2006.

ROUND(TO_DATE('13-OTT-06'), 'MONTH') restituisce il valore 01-OTT-06.