SQL string Functions

Source: Internet
Author: User
Tags rtrim

Tag:substring   asc   --    intercept    upper    ring    length    sql   highlight   

The/*len (string) function lower (string) function upper (string) function LTrim (string) function RTrim (string) function substring (string,start_position, Length) function charindex (string,substring) function left (string,length) function right (string,length) function ASCII (string) function ASCII (string) function */select left (' ABCDEFA13BSCDESFSDFDSFG ', 5) ' left ' Select Right (' A13BSCDESFSDFDSFGEDCBA ', 5) ' right ' select LEN (' Abcdefghigklmnopqrstuvwxyz ' LEN ' select UPPER (' abcdefghijklmnopqrstuvwxyz ') ' UPPER ' Select LOWER (' ABCDEFGHIJKLMNOPQRSTUVWXYZ ' LOWER ' select SUBSTRING (' abcdefgh start position is 7 intercept length 13IJKLMNOPQRSTUVWXYZ ', 9,13) ' SUBSTRING '    Select ASCII (' a ') ' Ascii:a ', ASCII (' z ') ' Ascii:z ', ASCII (' a ') ' Ascii:a ', ASCII (' z ') ' ascii:z ' Select RTRIM (' _ _ABCDEFG--- --0 ') ' Go to the right space ', LTRIM (' 0_ _ABCDEFG-----0 ') ' Go left space ' select Ieft (' Abcdefa13bscdesfsdfds FG ', 5) ' left ', right (' A13BSCDESFSDFDSFGEDCBA ', 5) ' Right ', Len (' abcdefghigklmnopqrstuvwxyz ') ' Len ', UPPER (' ABCDEFGHIJKLMNOPQRSTUVWXYZ ' UPPER ', LOWER (' abcdefghijklmnopqrstuvwxyz ') ' LOWER ', SUBSTRING (' abcdefgh ' Start position is 7 sectionTake length 13IJKLMNOPQRSTUVWXYZ ', 9,13) ' SUBSTRING ', ASCII (' a ') ' Ascii:a ', ASCII (' Z ') ' Ascii:z ', ASCII (' a ') ' Ascii:a ', ASCII ('    Z ') ' Ascii:z ', RTRIM (' _ _ABCDEFG-----0 ') ' Go right space RTRIM ', LTRIM (' 0_ _ABCDEFG-----0 ' Lrtrim Go left space '

SQL string 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.