SQL> alter session set nls_language = american;
SQL> alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';
--> format elements: YYYY, MM, DD, HH24, MI, SS 등등
SQL> select * from emp;
SQL> select sysdate from dual;
SQL> alter session set nls_date_format='DD/MON-RR HH:MI [AM]';
SQL> select * from emp;
SQL> select sysdate from dual;
SQL> alter session set nls_date_format='DD-MONTH-RR HH:MI:SS.SSSSS PM';
SQL> select sysdate from dual;
SQL> alter session set nls_date_format='DD-month-rr';
SQL> select sysdate from dual;
SQL> alter session set nls_date_format='DD-mon-RR';
SQL> select sysdate from dual;
'Oracle > SQL Fundamentals I' 카테고리의 다른 글
5일차 # 3-22: Date Functions (0) | 2012.04.09 |
---|---|
5일차 # 3-20: Date 산술연산 (0) | 2012.04.09 |
5일차 Date #3-19: DUAL table (0) | 2012.04.09 |
5일차 Number// # 3-13: ROUND, TRUNC, CEIL, FLOOR, MOD (0) | 2012.04.09 |
5일차 # 3-11 : Translate (0) | 2012.04.09 |