12
Return string at index number
22
Return a number formatted to specified number of decimal places
32
Return the string argument, left-padded with the specified string
37
Return a set of comma-separated strings that have the corresponding bit in bits set
42
Perform full-text search
47
Return a substring starting from the specified position
52
Return character code for leftmost character of the argument
57
Escape the argument for use in an SQL statement
62
Repeat a string the specified number of times
67
The REPLACE() function returns a string with all occurrences of the 'from_str' replaced by 'to_str'. REPLACE is case-sensitive when searching for 'from_str'.
71
REPLACE(str,from_str,to_str)
75
SELECT REPLACE('wwww.google.com', 'w', 'v');
77
Returns: vvv.google.com
82
This function returns a string argument with the characters in reverse order. ::
84
SELECT REVERSE('abcd');
91
Return the specified rightmost number of characters
96
Append string the specified number of times
101
Return a soundex string
107
Returns the substring as specified
109
Examples that use SUBSTRING() in the SELECT clause:
111
The SUBSTRING() function is used to extract a character string (using a given starting position and a given length). ::
114
SUBSTRING(course_designater,6,3) as 'Course number'
116
WHERE course_designater LIKE 'Excel%'
119
You can also format a column using SUBSTRING() in combination with functions like LOWER() and UPPER(). ::
122
CONCAT(UPPER(SUBSTRING(lastname,1,1)),
123
LOWER(SUBSTRING(lastname,2,29)))