Home  >  Article  >  Database  >  How to write date type data in oracle

How to write date type data in oracle

下次还敢
下次还敢Original
2024-04-30 06:39:12369browse

Oracle DATE type data represents date in the format YYYY-MM-DD, where YYYY represents the year, MM represents the month, ranging from 01 to 12, and DD represents the date, ranging from 01 to 31. For example, 2023-03-08 means March 8, 2023.

How to write date type data in oracle

How to write DATE type data in Oracle

DATE type data in Oracle represents date, the format isYYYY-MM-DD. Among them:

  • YYYY represents the year, two digits or four digits
  • MM represents the month, two digits, the range is 01 to 12
  • DD represents the date, two digits, ranging from 01 to 31

Example

  • 2023-03-08 means March 8, 2023
  • 1999-12-31 means December 31, 1999

Note:

  • DATE type data does not contain time information.
  • Oracle supports other date types that contain time information, such as TIMESTAMP and TIMESTAMP WITH TIME ZONE.

The above is the detailed content of How to write date type data in oracle. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn