Does Oracle's “date'[yyyy-mm-dd]'” literal always use the yyyy-mm-dd pattern?

给你一囗甜甜゛ 提交于 2019-12-05 04:19:41

It is not function, but date literal. And, Yes, it always matches YYYY-MM-DD regardless any oracle settings.

Here is a link to Oracle 10g SQL reference, on datetime literals. Excerpt:

The ANSI date literal contains no time portion, and must be specified in exactly this format ('YYYY-MM-DD'). Alternatively you can specify an Oracle date value, as in the following example:

TO_DATE('98-DEC-25 17:30','YY-MON-DD HH24:MI')

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!