String FUNCTIONS Flashcards
ASCII
Returns the ASCII value for the specific character
CHAR
Returns the character based on the ASCII code
CHARINDEX
Returns the position of a sub string in a string
CONCAT
Adds two or more strings together
Concat with +
Adds two or more strings together
CONCAT_WS
Adds two or more strings together with a separator
DATALENGTH
Returns the number of bytes used to represent an expression
DIFFERENCE
Compares two SOUNDEX values, and returns an integer value
FORMAT
formats a value with the specified format
LEFT
extracts a number of characters from a string (starting at the left)
LEN
Returns the length of the string
LOWER
converts a string to lower-case
LTRIM
removes leading spaces from a string
NCHAR
returns the Unicode character based on the number code
PATINDEX
returns the position of a pattern in a string