1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
SELECT sa_rubriq_id,
VALIDE_DU DATE_FOR_STD,
TO_CHAR(VALIDE_DU, 'DD.MM.YYYYbc') DATE_FOR_EXPL,
dump(TO_DATE(TO_CHAR(VALIDE_DU, 'DD.MM.YYYY'), 'DD.MM.YYYY'), 1010) DUMP_FNC_TO_DATE,
dump(VALIDE_DU) DUMP_DEFAULT
FROM sa_rubrique_emp
WHERE sa_rubriq_id IN (117, 163, 172)
AND int_emp_id = 6502;
SA_RUBRIQ_ID DATE_FOR_STD DATE_FOR_EXP
------------ ------------------- ------------
DUMP_FNC_TO_DATE
--------------------------------------------------------------------------------
DUMP_DEFAULT
--------------------------------------------------------------------------------
117 01.01.2011 00:00:00 01.01.2011ad
Typ=13 Len=8: 219,7,1,1,0,0,0,0
Typ=12 Len=7: 120,111,1,1,1,1,1
163 28.11.0003 00:00:00 28.11.0003ad
Typ=13 Len=8: 3,0,11,28,0,0,0,0
Typ=12 Len=7: 100,103,11,28,1,1,1
SA_RUBRIQ_ID DATE_FOR_STD DATE_FOR_EXP
------------ ------------------- ------------
DUMP_FNC_TO_DATE
--------------------------------------------------------------------------------
DUMP_DEFAULT
--------------------------------------------------------------------------------
172 28.11.0003 00:00:00 28.11.0003bc
Typ=13 Len=8: 3,0,11,28,0,0,0,0
Typ=12 Len=7: 100,97,11,28,1,1,1
=>
select to_char(valide_du, 'dd.mm.yyyybc')
from sa_rubrique_emp
where valide_du = to_date('28.11.-0003', 'dd.mm.syyyy');
TO_CHAR(VALI
------------
28.11.0003bc |
Partager