MySQL Common functions

Source: Internet
Author: User

String functions (which are primarily used to process strings):

Cancat (str1, str2, ... strn) connection string str1, str2 ..., strn as a string;

Insert (str, x, Y, instr) starts the string str from position x, and the substring of Y strings is replaced with the string InStr;

LOWER (str) turns all strings in the string str to lowercase;

UPPER (str) turns all strings in the string str to uppercase;

Left (str, x) returns the leftmost x character of the string str;

Right (str, x) returns the rightmost X character of the string str;

Lpad (str, n, pad) uses a string pad to populate the leftmost character of the string str until the length is n string length;

Rpad (str, n, pad) fills the rightmost image of the string str with a string pad until the length is n string length;

LTRIM (str) Removes the left-hand space of the string str;

RTRIM (str) removes the string str to the right of the space;

MySQL Common functions

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.