Conversion function of Oracle single-line function

Source: Internet
Author: User

To_char (string \ column, format string): Turns a date or number into a string display

Note: The time string or the time type column and the format string must be one by one corresponding, if more than the relevant characters will be error (in addition to using Systemdate, because To_char (System, ' YYYY-MM-DD ') This will not be an error)

If you precede the format string with FM and ' FMYYYY-MM-DD ', you will reject 0 in mm, and the case 2017-03-20 becomes 2017-3-20

To_date (string \ column, format string): Turns a string into a Date data display

To_number (String \ Column): Turns a string into a digital display

Conversion function of Oracle single-line function

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.