SQL>
SQL>
SQL> declare
2 v_dt DATE :=sysdate;
3 v_tx VARCHAR2(2000);
4 begin
5 v_tx:=to_char(v_dt,'mm/dd/yyyy');
6 DBMS_OUTPUT.put_line(v_tx);
7 v_tx:=to_char(v_dt,'hh24:mi');
8 DBMS_OUTPUT.put_line(v_tx);
9 v_tx:=to_char(v_dt);
10 DBMS_OUTPUT.put_line(v_tx);
11 end;
12 /
06/09/2007
20:32
09-JUN-07
PL/SQL procedure successfully completed.
|