其他分享
首页 > 其他分享> > 截取微软文档

截取微软文档

作者:互联网

  1. ASCII
    Returns the ASCII code value of the leftmost character of a character expression.
    ASCII ( character_expression )

  2. 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 )

  3. 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 ] )

  4. 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 ] )

  5. 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]... )

  6. DIFFERENCE
    This function returns an integer value measuring the difference between the SOUNDEX() values of two different character expressions.
    DIFFERENCE ( character_expression , character_expression )

  7. 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 ] )

  8. LEFT
    Returns the left part of a character string with the specified number of characters.
    LEFT ( character_expression , integer_expression )

  9. LEN
    Returns the number of characters of the specified string expression, excluding trailing spaces.
    LEN ( string_expression )

  10. LOWER
    Returns a character expression after converting uppercase character data to lowercase.
    LOWER ( character_expression )

  11. LTRIM
    Removes space character char(32) or other specified characters from the start of a string.
    LTRIM ( character_expression , [ characters ] )

  12. NCHAR
    Returns the Unicode character with the specified integer code, as defined by the Unicode standard.
    NCHAR ( integer_expression )

  13. 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 )

  14. 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' ] )

  15. REPLACE
    Replaces all occurrences of a specified string value with another string value.
    REPLACE ( string_expression , string_pattern , string_replacement )

  16. REPLICATE
    Repeats a string value a specified number of times.
    REPLICATE ( string_expression , integer_expression )

  17. REVERSE
    Returns the reverse order of a string value.
    REVERSE ( string_expression )

  18. RIGHT
    Returns the right part of a character string with the specified number of characters.
    RIGHT ( character_expression , integer_expression )

  19. RTRIM
    Removes space character char(32) or other specified characters from the end of a string.
    RTRIM ( character_expression , [ characters ] )

  20. SOUNDEX
    Returns a four-character (SOUNDEX) code to evaluate the similarity of two strings.
    SOUNDEX ( character_expression )

  21. SPACE
    Returns a string of repeated spaces.
    SPACE ( integer_expression )

  22. 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 ] ] )

  23. 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 ] )

  24. 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 )

  25. 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 ] )

  26. 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 )

  27. SUBSTRING
    Returns part of a character, binary, text, or image expression in SQL Server.
    SUBSTRING ( expression ,start , length )

  28. 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 )

  29. 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 )

  30. UNICODE
    Returns the integer value, as defined by the Unicode standard, for the first character of the input expression.
    UNICODE ( 'ncharacter_expression' )

  31. 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