Technology · Reference dataset
MySQL String Functions
MySQL string functions with a description, the documented syntax, a documented example with its result, and a link to the MySQL Reference Manual.
$69 once covers this and 402 other datasets, plus 33 collections, for 365 days. No automatic renewal. Have a pass?

Preview the records
First 5 and last 5 of 33 records · Last changed November 15, 2026
| Function | Description | Syntax | Example | Result | Doc url |
|---|---|---|---|---|---|
| ASCII | Returns the ASCII value for the specific character | ASCII(str) | SELECT ASCII('2'); | 50 | https://dev.mysql.com/doc/refman/8.4/en/string-functions.html |
| CHAR_LENGTH | Returns the length of a string (in characters) | CHAR_LENGTH(str) | https://dev.mysql.com/doc/refman/8.4/en/string-functions.html | ||
| CHARACTER_LENGTH | Returns the length of a string (in characters) | CHARACTER_LENGTH(str) | https://dev.mysql.com/doc/refman/8.4/en/string-functions.html | ||
| CONCAT | Adds two or more expressions together | CONCAT(str1,str2,...) | SELECT CONCAT('My', 'S', 'QL'); | MySQL | https://dev.mysql.com/doc/refman/8.4/en/string-functions.html |
| CONCAT_WS | Adds two or more expressions together with a separator | CONCAT_WS(separator,str1,str2,...) | SELECT CONCAT_WS(',', 'First name', 'Second name', 'Last Name'); | First name,Second name,Last Name | https://dev.mysql.com/doc/refman/8.4/en/string-functions.html |
| 23 more records · Download options | |||||
| SUBSTRING | Extracts a substring from a string (starting at any position) | SUBSTRING(str,pos) | SELECT SUBSTRING('Quadratically',5); | ratically | https://dev.mysql.com/doc/refman/8.4/en/string-functions.html |
| SUBSTRING_INDEX | Returns a substring of a string before a specified number of delimiter occurs | SUBSTRING_INDEX(str,delim,count) | SELECT SUBSTRING_INDEX('www.mysql.com', '.', 2); | www.mysql | https://dev.mysql.com/doc/refman/8.4/en/string-functions.html |
| TRIM | Removes leading and trailing spaces from a string | TRIM([{BOTH | LEADING | TRAILING} [remstr] FROM] str) | SELECT TRIM(' bar '); | bar | https://dev.mysql.com/doc/refman/8.4/en/string-functions.html |
| UCASE | Converts a string to upper-case | UCASE(str) | https://dev.mysql.com/doc/refman/8.4/en/string-functions.html | ||
| UPPER | Converts a string to upper-case | UPPER(str) | SELECT UPPER('Hej'); | HEJ | https://dev.mysql.com/doc/refman/8.4/en/string-functions.html |
Free sample files (up to 10 rows): CSV JSON XML
Open the sample in a free tool: CSV to JSON · JSON formatter · SQL INSERT generator · CSV to XML
CSV / JSON / XML
Put this data to work.
All 33 records, in your choice of format.
The free sample stops at 10 rows. A Data Pass removes the limit here and across the site, so you can stop collecting data and start using it.
- Every record in 403 datasets, this one included
- All 33 collections in full: more than 4 million rows of ZIP codes, schools, occupations and more
- CSV, JSON and XML, whole-category ZIPs, and 2,500 API requests a day
$69 once, for 365 days. No subscription and no automatic renewal, and what you download is yours to keep using.
Your key arrives by email after payment. Use it here to download the complete file.
Commercial use is allowed, free or paid.
Downloaded a CSV? Convert CSV to JSON, generate SQL inserts, remove duplicate lines, or sort a list with the free tools.
Scope and sources
Last checked against sources: October 15, 2026.
Last changed: November 15, 2026. This is when we last changed the data or its description. It doesn’t mean the data runs up to that date.
MySQL String Functions has 33 records and 6 fields: Function, Description, Syntax, Example, Result, Doc url.
A complete download includes all 33 records currently held in this dataset. Check the description and sources to decide whether its scope fits your project.
Use this dataset through the API
GET https://mysafeinfo.com/api/data/mysqlstringfunctions
Choose a format, sort, or request fewer rows. A pass key gives access to the complete dataset. See the examples and parameters.
Without a pass, sorting and randomization apply only to the fixed 10-row sample.