截取微软文档
作者:互联网
-
ASCII
Returns the ASCII code value of the leftmost character of a character expression.
ASCII ( character_expression ) -
CHAR
Returns the single-byte character with the specified integer code, as defined by the character set and encoding of the default collation of the current database.
CHAR ( integer_expression ) -
CHARINDEX
This function searches for one character expression inside a second character expression, returning the starting position of the first expression if found.
CHARINDEX ( expressionToFind , expressionToSearch [ , start_location ] ) -
CONCAT
This function returns a string resulting from the concatenation, or joining, of two or more string values in an end-to-end manner. (To add a separating value during concatenation, see CONCAT_WS.)
CONCAT ( string_value1, string_value2 [, string_valueN ] ) -
CONCAT_WS
This function returns a string resulting from the concatenation, or joining, of two or more string values in an end-to-end manner. It separates those concatenated string values with the delimiter specified in the first function argument. (CONCAT_WS indicates concatenate with separator.)
CONCAT_WS ( separator, argument1, argument2 [, argumentN]... ) -
DIFFERENCE
This function returns an integer value measuring the difference between the SOUNDEX() values of two different character expressions.
DIFFERENCE ( character_expression , character_expression ) -
FORMAT
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. For general data type conversions, use CAST or CONVERT.
FORMAT( value, format [, culture ] ) -
LEFT
Returns the left part of a character string with the specified number of characters.
LEFT ( character_expression , integer_expression ) -
LEN
Returns the number of characters of the specified string expression, excluding trailing spaces.
LEN ( string_expression ) -
LOWER
Returns a character expression after converting uppercase character data to lowercase.
LOWER ( character_expression ) -
LTRIM
Removes space character char(32) or other specified characters from the start of a string.
LTRIM ( character_expression , [ characters ] ) -
NCHAR
Returns the Unicode character with the specified integer code, as defined by the Unicode standard.
NCHAR ( integer_expression ) -
PATINDEX
Returns the starting position of the first occurrence of a pattern in a specified expression, or zero if the pattern is not found, on all valid text and character data types.
PATINDEX ( '%pattern%' , expression ) -
QUOTENAME
Returns a Unicode string with the delimiters added to make the input string a valid SQL Server delimited identifier.
QUOTENAME ( 'character_string' [ , 'quote_character' ] ) -
REPLACE
Replaces all occurrences of a specified string value with another string value.
REPLACE ( string_expression , string_pattern , string_replacement ) -
REPLICATE
Repeats a string value a specified number of times.
REPLICATE ( string_expression , integer_expression ) -
REVERSE
Returns the reverse order of a string value.
REVERSE ( string_expression ) -
RIGHT
Returns the right part of a character string with the specified number of characters.
RIGHT ( character_expression , integer_expression ) -
RTRIM
Removes space character char(32) or other specified characters from the end of a string.
RTRIM ( character_expression , [ characters ] ) -
SOUNDEX
Returns a four-character (SOUNDEX) code to evaluate the similarity of two strings.
SOUNDEX ( character_expression ) -
SPACE
Returns a string of repeated spaces.
SPACE ( integer_expression ) -
STR
Returns character data converted from numeric data. The character data is right-justified, with a specified length and decimal precision.
STR ( float_expression [ , length [ , decimal ] ] ) -
STRING_AGG
Concatenates the values of string expressions and places separator values between them. The separator isn't added at the end of string.
STRING_AGG ( expression, separator ) [ <order_clause> ]
<order_clause> ::= WITHIN GROUP ( ORDER BY <order_by_expression_list> [ ASC | DESC ] ) -
STRING_ESCAPE
Escapes special characters in texts and returns text with escaped characters. STRING_ESCAPE is a deterministic function, introduced in SQL Server 2016.
STRING_ESCAPE( text , type ) -
STRING_SPLIT
A table-valued function that splits a string into rows of substrings, based on a specified separator character.
STRING_SPLIT ( string , separator [ , enable_ordinal ] ) -
STUFF
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.
STUFF ( character_expression , start , length , replaceWith_expression ) -
SUBSTRING
Returns part of a character, binary, text, or image expression in SQL Server.
SUBSTRING ( expression ,start , length ) -
TRANSLATE
Returns the string provided as a first argument, after some characters specified in the second argument are translated into a destination set of characters, specified in the third argument.
TRANSLATE ( inputString, characters, translations ) -
TRIM
Removes the space character char(32) or other specified characters from the start and end of a string.
Starting with SQL Server 2022 (16.x) Preview, optionally remove the space character char(32) or other specified characters from the start, end, or both sides of a string.
TRIM ( [ LEADING | TRAILING | BOTH ] [characters FROM ] string ) -
UNICODE
Returns the integer value, as defined by the Unicode standard, for the first character of the input expression.
UNICODE ( 'ncharacter_expression' ) -
UPPER
Returns a character expression with lowercase character data converted to uppercase.
UPPER ( character_expression )
标签:string,微软,截取,character,Returns,文档,characters,specified,expression 来源: https://www.cnblogs.com/lwl1569/p/16683224.html