Oracle 11g SQL Fundamentals 03--Date manipulation function

Source: Internet
Author: User

1, Oracle date in the internal representation is numeric format, precision from century to seconds.

2. The default date representation format is DD-MON-RR (not yy)

The difference between YY and RR:

3. Date Operation function

Example:

The second parameter of Next_day can also be a number that represents a date after a few days. Last_day is the last day of the month in which the date was asked.

ROUND (' dd-11-2014 ', ' month ') is accurate to the month, ' Day ' 1-15 counts this month's (' 01-11-2014 '), more than 15th is counted next month (' 01-12-2014 ').

ROUND (' dd-mon-2014 ', ' year ') is accurate to years, ' month ' 1-6 months counted this year's (' dd-mon-2014 '), 6-12 months counted for the next year (' dd-mon-2015 ').

Oracle 11g SQL Fundamentals 03--Date manipulation function

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.