Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Oracleで数値をタイムスタンプ(6)に変換する方法は? つまり、20131108 を 08-NOV-13 12.00.00.000000 AM または timestamp(6) の任意の形式に変換します。ありがとう!
to_char を使用して数値を文字列に変換します。次に、その文字列を to_timestamp でタイムスタンプに変換します。時刻は自動的に午前 0 時になります。
select to_timestamp( to_char(20131108) ,'yyyymmdd') from dual