I have a column with TIMESTAMP
type in my Oracle Database. The default
column value is SYSTIMESTAMP
.
I want to SELECT
milliseconds FROM
the TIMESTAMP column. I use the query below without success:
SELECT TO_CHAR (MY_TIMESTAMP, 'dd-mm-yyyy hh24:mi:ss.FF') AS MY_TIMESTAMP
FROM MY_TABLE
-- Result: 20-12-2015 15:23:28.
As you see the result does not have any milliseconds and it is empty. If I change the query with .FF4
then it results .0000
.
How can I SELECT the column with milliseconds?