Oracle's default date format is YYYY-MM-DD, WHY?

后端 未结 12 2485
温柔的废话
温柔的废话 2020-11-29 00:44

Oracle\'s default date format is YYYY-MM-DD. Which means if I do:

 select some_date from some_table

...I lose the time portion of

12条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 01:08

    I'm not an Oracle user (well, lately anyhow), BUT...

    In most databases (and in precise language), a date doesn't include a time. Having a date doesn't imply that you are denoting a specific second on that date. Generally if you want a time as well as a date, that's called a timestamp.

提交回复
热议问题