String Functions Flashcards
(26 cards)
Returns the ASCII character based on the number code
CHAR
Returns the location of a substring in a string
CHARINDEX
Concatenates two or more strings together
CONCAT
Concatenates two or more strings together, and separates the concatenated string values with the specified delimiter
CONCAT WS
Returns the length of an expression (in bytes)
DATALENGTH
Compares two SOUNDEX values, and returns an integer value
DIFFERENCE
Extracts a substring from a string (starting from left)
LEFT
Returns the length of the specified string
LEN
Converts a string to lower-case
LOWER
Removes leading spaces from a string
LTRIM
Returns the Unicode character based on the number code
NCHAR
Returns the location of a pattern in a string
PATINDEX
Replaces a sequence of characters in a string with another set of characters
REPLACE
Repeats a string value a specified number of times
REPLICATE
Reverses a string and returns the result
REVERSE
Extracts a substring from a string (starting from right)
RIGHT
Removes trailing spaces from a string
RTRIM
Returns a string with a specified number of spaces
SPACE
Returns a string representation of a number
STR
Escapes special characters in texts and returns text with escaped characters
STRING_ESCAPE
Escapes special characters in texts and returns text with escaped characters
STRING_SPLIT
Deletes a sequence of characters from a string and then inserts another sequence of characters into the string, starting at a specified position
STUFF
Extracts a substring from a string
SUBSTRING
Returns the string provided as a first argument after some characters specified in the second argument are translated into a destination set of characters
TRANSLATE