String#
String functions operate on character input and return a character or numeric result — searching, trimming, replacing, formatting and measuring text.
Function |
Description |
|---|---|
Returns the ASCII code value of the leftmost character of a character expression. |
|
Converts an int ASCII code to a character. |
|
Searches an expression for another expression and returns its starting position if found. |
|
Returns a string that is the result of concatenating two or more string values. |
|
Returns a value formatted with the specified format and optional culture. Use the FORMAT function for locale-aware formatting of date/time and number values as strings. |
|
Returns the left part of a character string with the specified number of characters. |
|
Returns the number of characters of the specified string expression, excluding trailing blanks. |
|
Returns the Levenshtein distance between the two given strings. |
|
Returns a character expression after converting uppercase character data to lowercase. |
|
Returns a character expression after it removes leading blanks. |
|
Returns the Unicode character with the specified integer code, as defined by the Unicode standard. |
|
Returns the starting position of the first occurrence of a pattern in a specified expression, or zeros if the pattern is not found, on all valid text and character data types. |
|
Returns a Unicode string with the delimiters added to make the input string a valid SQL Server delimited identifier. |
|
Extracts a given group that matches the java-style regular expression. |
|
Replaces all occurrences of a specified string value that match a java-style regular expression with the replacement string. |
|
Extracts a group that matches the POSIX-style regular expression. |
|
Replaces all occurrences of a specified string value with another string value. |
|
Repeats a string value a specified number of times. |
|
Returns the reverse order of a string value. |
|
Returns the right part of a character string with the specified number of characters. |
|
Returns a character string after truncating all trailing spaces. |
|
Returns a string of repeated spaces. |
|
Splits a string around a java-style regular expression. |
|
Returns character data converted from numeric data. |
|
The STUFF function inserts a string into another string. It deletes a specified length of characters in the first string at the start position and then inserts the second string into the first string at the start position. |
|
Returns part of a character, binary, text, or image expression. |
|
Returns the integer value, as defined by the Unicode standard, for the first character of the input expression. |
|
Returns a character expression with lowercase character data converted to uppercase. |