Fractional seconds; no radix character is printed (use the X format element to add the radix character). Use the numbers 1 to 9 after FF to specify the number of digits in the fractional second portion of the datetime value returned. If you do not specify a digit, then Oracle uses the precision specified for the datetime datatype or the datatype's default precision.
Examples: 'HH:MI:SS.FF'
SELECT TO_CHAR(SYSTIMESTAMP, 'SS.FF3') from dual;
然后就是使用to_char的SP参数了。SP顾名思义就是spell out(读出),前面的FF是微妙格式,和to_timestamp保持一致。
所以这条语句对123456789进行两次spell out。
先是123000000,保持百万位正确读取
然后是000456789,千位的读取。
ok
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10336955/viewspace-662957/ ,如需转载,请注明出处,否则将追究法律责任。