Skip to content
Advertisement

Is it possible to remove milliseconds from TO_TIMESTAMP function

I have this query

which gives me this output

its fine except for .000000000 part. I dont need that part, and im not sure how its coming up if its HH:MI:SS format

this is for oracle sql developer.

Advertisement

Answer

Why not just convert to a date? That datatype doesn’t have fractions of a second:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement