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 或时间戳 (6) 中的任何格式。谢谢!
您使用 to_char 将您的号码转换为字符串。然后使用 to_timestamp 将该字符串转换为时间戳。时间将自动为午夜。
select to_timestamp( to_char(20131108) ,'yyyymmdd') from dual