Oracle character function lower () upper () length () substr (char, m, n)

Source: Internet
Author: User

Oracle character function lower () upper () length () substr (char, m, n) I. Character function: lower case function: lower (); usage: for example, all the names of a table are in lowercase: select lower (t. ename) from scott. emp t capital function: upper (); usage: for example, if all the names of a table are capitalized: select upper (t. ename) from scott. emp t length function: length (); usage: for example, to extract all the names of a table with a length of 5 Characters: select t. ename from scott. emp t where length (t. ename) = 5 Note: length refers to the length of a string. For example, if "China" is 2 "AB", it is also 2 truncated string: substr (char, m, n) usage: for example, select substr (t. ename, 1, 3) from scott. emp t Comprehensive Usage: displays the names of all employees in uppercase. 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;

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.