私の場合、興味のある列はTIMESTAMP
の型を持っていて、それはUTL_RAW.CAST_TO_TIMESTAMP
の機能のようではありません。
それはTIMESTAMP
へのOracle RAW
タイプを変換するhttp://www.oaktable.net/content/convert-rawhex-timestamp-0からトリックを使用することを助けた:
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'), 'yyyymmddhh24miss')
from (
select low_value p_str from user_tab_columns
where table_name = 'MESSAGE' and column_name = 'TS'
)
:-)かなり多くのことができますおかげでトニーを。 – Kage
@トニー、minとmaxの両方をクエリすると、説明計画は何ですか?これは途中でのテストです。 – Theo
@トニー:うわー、大丈夫。私はその後、私の実装を変更する必要があります。私は同時に両方を取り戻そうとしました...私はあなたに投票しますが、私はまだそれを行うことはできませんが、私の象徴的な投票を受け入れてください:-)。 – Kage