timestamp 裸数据 格式转换-凯发app官方网站
分类: oracle
2023-12-13 17:48:26
sql_monitor抓到的参数格式
-
set serveroutput on
-
declare
-
v date;
-
begin
-
dbms_stats.convert_raw_value(hextoraw('787b0113010101'),v);
-
dbms_output.put_line(to_char(v,'yyyy-mm-dd hh24:mi:ss'));
-
end;
-
/
-
-
或
-
select to_timestamp(
-
to_char( to_number( substr( p_str, 1, 2 ), 'xx' ) - 100, 'fm00' ) ||
-
to_char( to_number( substr( p_str, 3, 2 ), 'xx' ) - 100, 'fm00' ) ||
-
to_char( to_number( substr( p_str, 5, 2 ), 'xx' ), 'fm00' ) ||
-
to_char( to_number( substr( p_str, 7, 2 ), 'xx' ), 'fm00' ) ||
-
to_char( to_number( substr( p_str,9, 2 ), 'xx' )-1, 'fm00' ) ||
-
to_char( to_number( substr( p_str,11, 2 ), 'xx' )-1, 'fm00' ) ||
-
to_char( to_number( substr( p_str,13, 2 ), 'xx' )-1, 'fm00' ),
-
'yyyymmdd hh24miss' ) ts
-
from (select '&raw_timestamp' p_str from dual);
-
-
787b0113010101
"));
function link(t){
var href= $(t).attr('href');
href ="?url=" encodeuricomponent(location.href);
$(t).attr('href',href);
//setcookie("returnouturl", location.href, 60, "/");
}