3
2
declare d2 varchar2(7); d1 date:=sysdate; begin select to_char(d1, 'yyyy-mm') into d2 from dual; dbms_output.put_line(d2); end;