Ascii Returns The ASCII Code Value of The Leftmost Character of A Character Expression
Ascii Returns The ASCII Code Value of The Leftmost Character of A Character Expression
ASCII
Returns the ASCII code value of the leftmost character of a character expression.
2. CHAR
A string function that converts an int ASCII code to a character.
Syntax: CHAR ( integer_expression )
3. CHARINDEX
Returns the starting position of the specified expression in a character string.
Arguments
expression1
expression2
Is an expression, usually a column searched for the specified sequence. expression2 is of the
character string data type category.
start_location
Is the character position to start searching for expression1 in expression2. If start_location is not
given, is a negative number, or is zero, the search starts at the beginning of expression2.
4.DIFFERENCE
Returns the difference between the SOUNDEX values of two character expressions
as an integer.
5. LEFT
Arguments:
character_expression
integer_expression
6. LEN
Returns the number of characters, rather than the number of bytes, of the given string expression,
excluding trailing blanks.
Arguments: character_expression
8. LTRIM
Arguments: character_expression
9. REPLACE
Replaces all occurrences of the second given string expression in the first string expression with
a third expression.
Arguments
Arguments
11. RIGHT
Returns the part of a character string starting a specified number of integer_expression characters
from the right.
Arguments
character_expression
integer_expression
12. RTRIM
Syntax
RTRIM ( character_expression )
Arguments
character_expression
Syntax
SPACE ( integer_expression )
Arguments
integer_expression
Is a positive integer that indicates the number of spaces. If integer_expression is negative, a null
string is returned.
14. STUFF
Deletes a specified length of characters and inserts another set of characters at a specified
starting point.
Syntax
Arguments
character_expression
start
Is an integer value that specifies the location to begin deletion and insertion. If start or length is
negative, a null string is returned. If start is longer than the first character_expression, a null
string is returned.
length
Is an integer that specifies the number of characters to delete. If length is longer than the first
character_expression, deletion occurs up to the last character in the last character_expression.
15. SUBSTRING
Arguments
expression
Is a character string, binary string, text, image, a column, or an expression that includes a
column. Do not use expressions that include aggregate functions.
start
length
Is an integer that specifies the length of the substring (the number of characters or bytes to
return)
16. UPPER
Syntax
UPPER ( character_expression )
Arguments
character_expression
Returns the integer value, as defined by the Unicode standard, for the first character of the input
expression.
Syntax
UNICODE ( 'ncharacter_expression' )
Arguments
'ncharacter_expression'