- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
FUNCTION get_yesterday
RETURN DATE
AS
dd VARCHAR2 (2);
mm VARCHAR2 (2);
yy VARCHAR2 (4);
BEGIN
SELECT TO_CHAR (SYSDATE - 1, 'yyyy')
INTO yy
FROM DUAL;
END get_yesterday;