oracle的to_char函数能不能把时间精确到毫秒级,给个例子

oracle的to_char函数能不能把时间精确到毫秒级,给个例子
2025-02-26 08:44:42
推荐回答(1个)
回答1:

9i以上版本,有一个timestamp类型获得毫秒,如
SQL>select to_char(systimestamp,'yyyy-mm-dd hh24:mi:ssxff') time1,
to_char(current_timestamp) time2 from dual;