Oracle 9i has three Data Types About Time: Timestamp [(precision)] timestamp [(precision)] with Time Zone timestamp [(precision)] with local time zone, timestamp [(precision)] with Time Zone stores time zone information.
1. Oracle time zone settings
Java
The date indicated by the previous write Java code is YYYY-MM-DD hh: mm: SS
Mm (uppercase for month) and mm (lowercase for minutes)
SQL
But in SQL, the situation is completely different.
(Cause: the reason is that SQL statements are
SQL Server full time zone conversionIf your application is used across borders (such as cross-border bank transactions), then some of the internationalization features of the database can be said to be very important.The most common of these are the
1 ADD_MONTHS
Format:ADD_MONTHS (D, N)
Note:Returns the date and time corresponding to date and time D plus N months. If N is the timing value, it indicates that D is followed; if N is negative, it indicates that D is before; if N is the decimal
Welcome to the Oracle community forum and interact with 2 million technical staff to enter 1rowcreated. SQLselect * fromtest_zone; TIMESTAMP_DTZONE_DTLOCAL_ZONE_DT Login --------------------------------------------------------------------------------
After the customer's production database server is restarted, the local time is different from the listener connection time, which is 13 hours slower than our actual time.
After the customer's production database server is restarted, the local time
In the development process, there are two concepts related to the regional area: character encoding and time; the evolution of the Code and Time specification has a historical legacy, and it is a corner of the development of software. About
Oracle operations on time and date
Oracle time/date operations
There are many date functions in oracle, such:
1,Add_months ()Used to increase or decrease the number of months from a date value.
Date_value: = add_months (date_value, number_of_months)
There are many date functions in oracle, such:
1,Add_months ()Used to increase or decrease the number of months from a date value.
Date_value: = add_months (date_value, number_of_months)
Example:
SQL> select add_months (sysdate, 12) "Next Year"
There are many date functions in oracle, such:
1,Add_months ()Used to increase or decrease the number of months from a date value.
Date_value: = add_months (date_value, number_of_months)
Example:
SQL> select add_months (sysdate, 12) "Next Year" from
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.