Set the Oracle PL/SQL time display format Nls_timestamp_format 2008-01-27 00:04:35:877000

Source: Internet
Author: User

Set the Oracle PL/SQL time display format Nls_timestamp_format

Display format for timestamp time in Oracle Oracle database Time field We usually use the timestamp format, and before setting it, the queried data is similar to "2 July-January-08 12.04.35.877000 Morning",
After the To_char function conversion, we get the following result: "2008-01-27 00:04:35:877000", in order to be able to modify the time directly, we only need to add the following settings in the System Properties-advanced-environment variable-system variable: www.2cto.com Nls_ Timestamp_format = Yyyy-mm-dd HH24:MI:SS:FF6 after setting, restart Plsql, after query we can see the time displayed as "2008-01-27 00:04:35:877000" format.

Set the Oracle PL/SQL time display format Nls_timestamp_format 2008-01-27 00:04:35:877000

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.