0

I am trying to create a date column for my database which contains milliseconds.

How do I create a coloumn to store a date in the following format: YYYY-MM-DD HH24:MI:SS:FF3 ??

Thank You .

user3588388
  • 37
  • 1
  • 1
  • 7

1 Answers1

2

In Oracle, timestamp stores the date and time down to (and beyond) milliseconds.

Oracle date

Community
  • 1
  • 1
Johanna Larsson
  • 10,531
  • 6
  • 39
  • 50
  • Hi, Thank you. This worked. Is it possible to specify a format for this column? I want to save the values in the following format: YYYY-MM-DD HH:MI:SS:FFF. – user3588388 Apr 30 '14 at 10:04
  • @user3588388 - dates and timestamps don't have any format - it's the *string representation* that has a format. Use `TO_CHAR` to specify the format when converting from a date/timestamp to a string, e.g. when displaying it on screen or in a report. – Jeffrey Kemp May 01 '14 at 05:00