Common functions in the "SQL Server" section

Source: Internet
Author: User

Some commonly used string functions

function Name Description Example
CHARINDEX
Used to find the starting position of a specified string in another string

 charindex ( expression1 , expression2 [, start_location ] )

parameters:

expression1

expression1 maximum length is limited to 8,000 characters.

expression2
P>

start_location

bigint expression that is the starting position of the search. If start_location is not specified, or start_location is negative or 0, the search starts at the beginning of expression2 .

 

 len   return string length

 len ( string_expression )

parameters:

string_expression
P> string expression that requires a value. string_expression can be a constant, a variable, or a character column or a binary row of data.

LOWER To lowercase

LOWER ( character_expression )

Parameters:

character_expression

The expression for the character or binary data. The data type of the character_expression can be a constant, variable, or column. The character_expression must be a data type that can be implicitly converted to varchar . Otherwise, use cast to explicitly convert the character_expression.

Ah, real deal thiosulfate.

Common functions in the "SQL Server" section

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.