Working with String Functions in MySQL

Published July 26, 2025 By Sai Sree Ram Gundepudi

Examples

SELECT CONCAT(first_name, ' ', last_name) AS full_name FROM employees;
SELECT LENGTH('MySQL');
SELECT SUBSTRING('HelloWorld', 1, 5);
SELECT REPLACE('2025-07-23', '-', '/');

Was this solution helpful?

Your feedback helps improve our technical knowledge repository.

Share this article