Oracle character function lower () upper () Length () substr ()

Source: Internet
Author: User

one, the character function: lowercase functions: lower (); usage: For example, all the names of a table are lowercase: Select Lower (t.ename) from Scott.emp t   uppercase Function: Upper (); to use: For example, capitalize all the names of a table: Select Upper (T.ename) from Scott.emp t   length function: Long (); to use: For example, remove all names of a table as 5 characters in length: Select T.ename from scott.emp t where length (t.ename) = 5 Note: Length refers to the length of the string such as "China" is 2 "AB" also 2   Intercept string: substr (char,m,n) usage: For example, display the first three characters of all employees Select substr (t.ename, 1, 3) from Scott.emp t   Comprehensive Application: display all employee names in uppercase letters 1.select Upper (substr (T.ename, 1, 1)) | | Lower (substr (t.ename, 2, Length (t.ename)-1)) from Scott.emp t 2. Select Initcap (ename) from Scott.emp;

Oracle character function lower () upper () Length () substr ()

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.