0
Let's look at some Oracle TRUNC function examples and explore how to use the TRUNC function in Oracle/PLSQL.
For example:
TRUNC(TO_DATE('22-AUG-03'), 'YEAR') Result: '01-JAN-03' TRUNC(TO_DATE('22-AUG-03'), 'Q') Result: '01-JUL-03' TRUNC(TO_DATE('22-AUG-03'), 'MONTH') Result: '01-AUG-03' TRUNC(TO_DATE('22-AUG-03'), 'DDD') Result: '22-AUG-03' TRUNC(TO_DATE('22-AUG-03'), 'DAY') Result: '17-AUG-03'
0Awesome Comments!